-->
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: xml mapping
PostPosted: Fri Jan 14, 2005 10:45 am 
Newbie

Joined: Fri Jan 14, 2005 10:35 am
Posts: 1
Hi all,
I'm having problems creating relationship mappings. Ok, I have 3 tables:
Table1: t1_id:PK (primary key) and some other fields

Table2: t2_id:PK (primary key) and some other fields

Table3: t1_id:FK (foreign key) references Table1
t2_id:FK (foreign key) references Table2
... and some fields

relationship of Table1 to Table3 is one to many / many to one
" " Table2 to Table3 is one to one

How should I define my xml mappings? Please help.... Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 14, 2005 10:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I suggest you read the online documents then possibly invest in HIA book.
After you have read the basics (and tried a few things). This (which is a part of the docs) will answer your relationship questions.
http://www.hibernate.org/hib_docs/reference/en/html/example-parentchild.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.