A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
EJB Certification (SCBCD/OCPJBCD)
Owning side of the relationship
Joined: Aug 26, 2008
Nov 17, 2008 09:53:00
The owner of the relationship is purely our taste or is there any rule for that?
3 in Action for it is given as
For bidirectional one-to-many relationships,
is always the owning side of the relationship.
Is it an advice or rule to be followed?
May be i am asking this question because i did not understand the entity relationships fully
Joined: Nov 24, 2005
Nov 17, 2008 17:44:00
This is a rule : The many side of one-to-many / many-to-one bidirectional relationships must be the owning side, hence the mappedBy element cannot be specified on the
All roads lead to JavaRanch
Fu Dong Jia
Joined: May 23, 2007
Nov 17, 2008 19:25:00
who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Owning side of the relationship
The word inverse in a Bidirectional Relationships
mappedBy attribute doubt
Entities association relationship defaults - Choose Correct statement
what us mean mappedBy="item" ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014