-->
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: Migration from Gibernate 3.3 to 3.5.1 , unit tests failing
PostPosted: Thu Jun 17, 2010 5:36 pm 
Newbie

Joined: Thu Jun 17, 2010 5:31 pm
Posts: 1
I migrated from 3.3 to 3.5.1 and I am hitting

Code:
java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()
   at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1830)
   at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:762)
   at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:726)
   at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:636)
   at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:359)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1377)
   at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)


My code has
Code:

import javax.persistence.OneToMany;
import javax.persistence.CascadeType;

@OneToMany(fetch = FetchType.LAZY, mappedBy = "pk.upgrade", cascade = {CascadeType.PERSIST, CascadeType.MERGE})
Set<Upgrade> upgrade = new HashSet<Upgrade>();


Any idea what is going on :(

Thanks,


Top
 Profile  
 
 Post subject: Re: Migration from Gibernate 3.3 to 3.5.1 , unit tests failing
PostPosted: Fri Jun 18, 2010 5:00 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hibernate 3.5.1 is a JPA2 implementation, you're likely having a JPA (1) API on classpath

_________________
Sanne
http://in.relation.to/


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.