Joined: Fri Aug 19, 2005 9:04 am Posts: 4
|
hbm Annotations 3.1b4 /ejb3-persistence.jar, hbm 3.1 b1 (tried 3.1b2 aswell)
Oracle 9i / 10g:
Problem: superclass not recognised as annotatated class.
org.hibernate.AnnotationException: No identifier specified for entity: my.domain.some.package.SomeEntity at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:569) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:194) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:999)
where the annotated super class (not an entity) is just used to parent @Id @Version for all persistent subclasses. So the Id for my.domain.some.package.SomeEntity is defined in the superclass but this is not being recognised.
Code works with hbm3.05 / edr2-persistence.jar / annotations b1&2 but not latest beta of annotations / ejb3-persistence.jar.
I've tried @EmbeddableSuperclass but this errors:
java.lang.NoSuchMethodError: org.hibernate.mapping.ManyToOne.createPropertyRefConstraints(Ljava/util/Map;)V
many thks in advance.
|
|