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,