-->
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.  [ 4 posts ] 
Author Message
 Post subject: HHHHHOOOOO Hibernate,I need a help
PostPosted: Tue Jun 01, 2004 2:05 pm 
Beginner
Beginner

Joined: Sun Sep 07, 2003 9:04 am
Posts: 48
i have generated hbh.xml files with hibernate synchronizer and generated the java code with the same tool, then made a small main class when i run the main i get the following errors.
how can correct it ?

net.sf.hibernate.MappingException: An association from the table RESERVATIONS refers to an unmapped class: src.Flights
at net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:661)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:761)
at src.test.main(test.java:31)
Exception in thread "main"


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 01, 2004 3:06 pm 
Beginner
Beginner

Joined: Mon Sep 29, 2003 10:32 pm
Posts: 35
Location: Toronto, Ontario
This is a probably due to bug in Hibernate Synchonizer, or to incorrect use of that tool. It will run if you ensure that the Flight class is mapped.


Top
 Profile  
 
 Post subject: Exactly the same error in JBoss 3.2.5
PostPosted: Thu Aug 19, 2004 11:51 am 
Newbie

Joined: Thu Aug 19, 2004 11:47 am
Posts: 1
Hi,

I am using JBoss 3.2.5. and I am not using Hibernate Synchronizer. However I do recieve the same error...
I have tried to deploy my application on an OC4J standalone appserver and there I had no problem...

Does anyone has an idea??

Regards,

Romano


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 20, 2004 8:49 am 
Senior
Senior

Joined: Fri Nov 21, 2003 5:55 am
Posts: 155
Are you sure that you have mapped all your *.hbm.xml files in your jboss-service.xml or add them into the configuration object?

<attribute name="MapResources">
.....
</attribute


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