-->
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: OneToOne relation: Who gets the FK column?
PostPosted: Tue Feb 15, 2011 11:48 am 
Beginner
Beginner

Joined: Wed Oct 08, 2008 10:59 am
Posts: 37
Assume I have two tables AAA and BBB which are associated in an 1:1 relationsship.

So one of the two tables must hold the Foreign Key (column) of the other.

How can I tell (with Annotations) that table BBB should hold the foreign key of table AAA and NOT vice versa?

Peter


Top
 Profile  
 
 Post subject: Re: OneToOne relation: Who gets the FK column?
PostPosted: Tue Feb 15, 2011 12:06 pm 
Regular
Regular

Joined: Fri Jan 28, 2011 11:44 am
Posts: 117
http://docs.jboss.org/hibernate/stable/ ... ssociation


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.