-->
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 references unmapped class:
PostPosted: Fri Nov 03, 2006 4:16 am 
Newbie

Joined: Thu Nov 02, 2006 4:13 am
Posts: 7
Location: San Jose, CA
Hi friends ,
Any idea why this exception gets thrown when trying to get db session from Hibernate (3.1)

Caused by: org.hibernate.MappingException: Association references unmapped class: com.cisco.pele.comp.orm.pele.PeleIcPartyAfctDevc
at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2271)
at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2794)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1031)

Regards
Harish


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 4:33 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
You mapped a Reference to the class com.cisco.pele.comp.orm.pele.PeleIcPartyAfctDevc. There are two possible mistakes you have made:
1) You did not map that class

2) You forgot to add the class / mapping to the Configuration (hibernate.cfg.xml if you use xml config)

_________________
Please don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 03, 2006 9:11 pm 
Newbie

Joined: Thu Nov 02, 2006 4:13 am
Posts: 7
Location: San Jose, CA
thanks that worked


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.