-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mapping Java 5 enums
PostPosted: Fri Nov 04, 2005 1:07 pm 
Newbie

Joined: Fri Oct 14, 2005 2:35 pm
Posts: 14
I'm wondering what the best practice is for mapping Java 5 enums. There's nothing about it in "Pro Hibernate 3" or "Hibernate in Action" and there isn't a mention of enums in the Hibernate 3.0.5 documentation.

I did a search on the Hibernate site and found the wiki article Java 5 EnumUserType. But that offers 3 different ways of solving the problem, each of which seem to have problems from what the comments say about them. So what's the most commonly used and accepted way of mapping Java 5 enums?

On another thread, http://forum.hibernate.org/viewtopic.ph ... light=enum, Hibernate devs seemed to imply that enum support was going to be built into Hibernate 3. Did that actually happen? If so, where's the documentation on using it?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 04, 2005 1:08 pm 
Newbie

Joined: Fri Oct 14, 2005 2:35 pm
Posts: 14
The other thing I was wondering about is once I get the enum mapping done, what about EnumSets? How should those be mapped?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.