-->
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: question about the documentation
PostPosted: Tue Mar 17, 2009 5:25 am 
Newbie

Joined: Tue Aug 19, 2008 4:52 pm
Posts: 3
In the section 7.2 of documentation here:

http://www.hibernate.org/hib_docs/reference/en/html_single/#assoc-unidirectional

it states

"A unidirectional one-to-many association on a foreign key is a very unusual case, and is not really recommended".

I was finding that quite a surprise. It then says in section 7.3.1 here

http://www.hibernate.org/hib_docs/reference/en/html_single/#assoc-unidirectional-join

"A unidirectional many-to-one association on a join table is quite common when the association is optional".

Upon third reading I am thinking that the key point is that it is documenting the relationship between "entities" and not "components". If that that is the case then it is saying that "assocation on a foreign key is very unusual between entities is unusual" whereas it says nothing about "aggregation on a foreign key" which is where we would expect to find a cascade relationship and would not normally expect a join table.

Is my interpretation of this section of the documentation correct? If so then why? Is it because with association between entities it is normally an optional association on which case the foreign key would need to be "not null" which would effect performance?

thx


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.