-->
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: superclass not recognised (tried @EmbeddableSuperclass)
PostPosted: Fri Aug 19, 2005 9:52 am 
Newbie

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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 19, 2005 11:33 am 
Newbie

Joined: Fri Aug 19, 2005 9:04 am
Posts: 4
pls ignore previous post, I had hbm classes on the classpath from earlier debugging. hbm 3.1 b1 and annotation 3.1 b4 with ejb-persistence.jar working OK.


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.