-->
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: MappingException
PostPosted: Tue Apr 19, 2005 7:24 pm 
Beginner
Beginner

Joined: Fri Apr 15, 2005 4:53 pm
Posts: 29
I'm getting the org.hibernate.MappingException: Association references unmapped class: xxx.hibernate.Model when I try to initialize the session-factory. The hibernate config file looks like this:

<hibernate-configuration>
<session-factory>
...
<mapping resource="xxx/hibernate/A.hbm.xml"/>
<mapping resource="xxx/hibernate/C.hbm.xml"/>
<mapping resource="xxx/hibernate/Credit.hbm.xml"/>
<mapping resource="xxx/hibernate/Manufacturer.hbm.xml"/>
<mapping resource="xxx/hibernate/Model.hbm.xml"/>
...
</session-factory>

</hibernate-configuration>


I'm not sure why it can find some and cannot find the others. I do have the class file in proper place.

Thanks.


Top
 Profile  
 
 Post subject: Re: MappingException
PostPosted: Tue Apr 19, 2005 10:06 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
You'll need to include a lot more information if you expect anyone to be able to help you.

http://www.hibernate.org/160.html


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.