-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate and jpa 2.0?
PostPosted: Wed Feb 20, 2013 4:28 am 
Beginner
Beginner

Joined: Mon Nov 15, 2010 10:39 am
Posts: 27
I recently upgraded the Hibernate version of our project to 4.1.8. Upon doing so, deployment of the built ear-file failed, due to it not find the method "orphanRemoval" in the class OneToMany. After a bit of research I found that this method is new in JPA 2.0, and I landed on the conclusion that I might as well upgrade to JPA 2.0 as well. But that was not so easy. After making sure that all JPA 1 dependencies were removed, I still got the error.

After some more digging I found that the OneToMany class being used is the one residing in hibernate-jpa-2.0-api-1.0.1.Final.jar, a transitive dependency from hibernate-entitymanager 4.1.8. But this class does not contain the method orphanRemoval! I find it very strange that something marked as being jpa 2.0 is lacking one of the methods of the api specification, and even stranger that upgrading hibernate would result in it calling non-existing methods in dependencies that it itself provides.

Is this some kind of error, or am I just doing it wrong?


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

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.