-->
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.  [ 1 post ] 
Author Message
 Post subject: inverse attribute in one-to-one relationships
PostPosted: Fri Nov 04, 2011 5:25 am 
Newbie

Joined: Fri Nov 04, 2011 5:10 am
Posts: 1
Hi all. I understand well the concept of inverse attribute, but i have one doubt. In the book Beggining with Hibernate, chapter 4, the authors give a full explanation about the purpose of owning a relationship. They give an example with a one to one relationship. That's clear. What puzzles me is that actually, in hibernate, the only moments you can specify inverse=true are when defining a collection (in many-to-many and one-to-many associations) or in a join table (including then all types of associations), but that leaves out one-to-one associations defined by a foreign key, which is exactly the example the authors were using in Beggining with Hibernate book. Does that mean that one-to-one associations through a foreign key can never cause redundant updates to the underlying database? Could someone tell me what i am understanding wrong?

tx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.