-->
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.  [ 3 posts ] 
Author Message
 Post subject: Association to Subclass, supported?
PostPosted: Thu Mar 25, 2004 4:21 pm 
Regular
Regular

Joined: Tue Jan 06, 2004 3:32 pm
Posts: 80
Location: Munich, Germany
Hello everyone,

I am getting the following Exception:

net.sf.hibernate.MappingException: An association from the table user_role_map refers to an unmapped class: my.User

The class is indeed mapped, but it is a subclass.

Are associations to subclasses supported? (Hibernate 2.1.2,
MySQL 3.23)

Regards,

Andreas


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 5:14 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
show your mapping files


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 7:06 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The subclass itself has to be mapped (even with empty <subclass/>)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.