Hi All,
Hibernate version: 3rc1
Hibernate-annotations: 3.0-alpha3
I get the following exception, when I try to generate a schema with classes which are annotated with @DependentObject:
Code:
org.hibernate.AnnotationException: Annotated class should have an @Entity annotation: org.hibernate.test.metadata.onetoone.ComputerPk
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:210)
at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:44)
at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:182)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1353)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1335)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1302)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1264)
...
I try this with the (unmodifed) hibernate example:
Code:
@DependentObject
public class ComputerPk implements Serializable {
....
}
Is this an open issue or did I something wrong?
Thanks for any help