2 Replies Latest reply on Feb 4, 2005 4:29 PM by danch1

    Persistence of enums?

    danch1

      Has there been any discussion on how EJB3 implementations should support Java 5 enums? they're currently serialized into BLOB/bytea fields. It might be nice to support a user-defined mapping for these as well (would make reporting easier, if nothing else)

      -danch

        • 1. Re: Persistence of enums?
          bill.burke

          it will eventually be in the spec as a number of EG members have request for it. It is a no-brainer.

          Unfortunately, I don't think it made it into EDR2 and Hibernate3 will need to support it as well.

          • 2. Re: Persistence of enums?
            danch1

            Good to know it will be there. I understand that the spec is in development and a bit of a moving target right now. I'm just putting together a toy app to explore this stuff at the moment, but I'm looking forward to the day that I don't have to explain to coders why EJBs put 3 layers of indirection between them and what they need to get done ;)