-->
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.  [ 5 posts ] 
Author Message
 Post subject: Many-to-one relationship problem
PostPosted: Wed Nov 03, 2004 8:16 pm 
Newbie

Joined: Wed Nov 03, 2004 7:45 pm
Posts: 4
Hibernate version: 2.1

Dear programmers,

I


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 8:31 pm 
Newbie

Joined: Wed Nov 03, 2004 6:44 pm
Posts: 4
Do you have another mapping file for the Costumer? (e.g. Costumer.hbm.xml)

In order for hibernate to manage this relationship, the Costumer class must also be understood by hibernate.


Top
 Profile  
 
 Post subject: Yes, I have.
PostPosted: Thu Nov 04, 2004 8:39 am 
Newbie

Joined: Wed Nov 03, 2004 7:45 pm
Posts: 4
Yes, I have a Costumer.hbm.xml. Each table has a Mapping file. I don't know if I need to refer Costumer.hbm.xml in User.hbm.xml. When I put the class tag of Costumer in User.hbm.xml, it's work!!! Why not work separeted?


Top
 Profile  
 
 Post subject: Problem solved
PostPosted: Sat Nov 06, 2004 11:24 am 
Newbie

Joined: Wed Nov 03, 2004 7:45 pm
Posts: 4
Dear developers,

I solved the problem. I use hibernate.cfg.xml instead of hibernate.properties. In hibernate.cfg.xml I can declare all the mapping files and they can see each other. I don


Top
 Profile  
 
 Post subject: Solving problem of "The user must supply a JDBC connect
PostPosted: Sun Nov 07, 2004 7:40 pm 
Newbie

Joined: Wed Nov 03, 2004 7:45 pm
Posts: 4
Finally, I solved the The user must supply a JDBC connection problem. The only solution visible for me is using both Hibernate.cgf.xml and hibernate.properties together. The first one has the mapping references and the second one has the database configuration.

If any programmer knows how to use only Hibernate.cfg.xml, please, tell us.


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