-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem in one-to-one relation
PostPosted: Sun May 30, 2004 10:32 am 
Newbie

Joined: Sun May 30, 2004 9:01 am
Posts: 7
How the mapped don, when there is no "column" attribute in <one-to-one> tag?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 31, 2004 5:10 am 
Senior
Senior

Joined: Sun Mar 14, 2004 10:16 am
Posts: 129
Location: Ankara
for <one-to-one> mapping, no column should be specified because, one-to-one generates join query on the ""OID"" attributes of 2 tables. That is why people called it one-to-one.
If you need to specify, column name, then it means that is many-to-one relation. Use many-to-one

_________________
-developer


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 31, 2004 5:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can use property-ref to specifiy a relation to a foreign key.


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