-->
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: Help,one-to-one!Thanks!
PostPosted: Mon Nov 20, 2006 8:17 am 
Newbie

Joined: Mon Nov 20, 2006 12:27 am
Posts: 1
I have two table,such as:

table1
-----------
id cid
1 1
2 3

table2
-----------
id cid1 parentid
1 1 2
3 3 1

----------------------------------
now! Id is the primarykey,cid and cid1 is foreign key.I want to make table1 and table2 relating with table1.cid = table2.cid1,
please tell me how to write the config file.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 10:15 am 
Regular
Regular

Joined: Mon Jul 18, 2005 4:10 am
Posts: 92
Location: Poland
Config file? You mean mapping?

http://www.hibernate.org/hib_docs/nhibernate/html/

Part 5.1.11 is about one-to-one

_________________
michal


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.