Hello everyone,
With Hibernate 3.1 final and Annotations beta 7, I get the following exception during SessionFactory initialization:
java.lang.NoSuchMethodError: javax.persistence.OneToMany.targetEntity()Ljava/lang/Class;
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1197)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:654)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:266)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:199)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1146)
I have searched my whole project for invocations of that method (targetEntity), but I could not find any. Besides, a clean build does not reveal any errors in Eclipse.
I also copied the current ejb3-persistence.jar from the annotations archive.
Any idea where I could start searching?
Regards,
Andreas
|