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.  [ 6 posts ] 
Author Message
 Post subject: Java 5 EnumUserType - which has been blessed?
PostPosted: Mon Oct 24, 2005 12:45 pm 
Newbie

Joined: Wed Sep 22, 2004 10:25 pm
Posts: 9
Location: Rochester, NY USA
There is a WIKI page "Java 5 EnumUserType" here: http://www.hibernate.org/272.html that has a couple different implementations of a reusable user type for java 5 enums. However, there are several posts beneath them that tweak it in one way or another. I was just wondering if there is a "final" version - or if that's not possible - a "blessed by the hibernate team" version that can be posted, or better yet, added to hibernate3.jar...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 6:14 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
There is EnumType in annotations project


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 9:26 pm 
Newbie

Joined: Wed Sep 22, 2004 10:25 pm
Posts: 9
Location: Rochester, NY USA
Thanks, snpesnpe. That is helpful (and I gave you a forum credit).

Does anyone happen to know if the code in hibernate-annotations.jar is going to get brought back into hibernate3.jar? Maybe will 3.1 be when hibernate3.jar, hibernate-annotations.jar (and maybe even hibernate-entitymanager.jar) all get merged?

Thanks again.
David


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 9:30 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I don't know for merge, but you can use it togetther - only add all 3 jars in classpath and and choose corect versions (choose last for all 3)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 9:35 pm 
Newbie

Joined: Wed Sep 22, 2004 10:25 pm
Posts: 9
Location: Rochester, NY USA
Wow, thanks for the quick reply (again).

I'm happily using Spring 1.2.5 with Hibernate 3.1rc2, albeit with hbm.xml mapping files. Looks like this version of Spring supports Hibernate annotations, so I'm going to give that a try (I'd love to dump the hbm.xml files). However, I think I'll hold off on the ejb3 entity manager stuff 'cause I don't really see a need for it. Spring hides my DAOs behind an interface anyway, so my app already doesn't even know I'm using Hibernate, and it wouldn't know I'm using ejb3 either - so why have the middle man (ejb3?). Just a rhetorical question - no need to answer. :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 9:46 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
ejb3 is standard and it's good always - many idea in ejb3 are from hibernate
hibernate have extended features, too


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.