A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course 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,ManyToOne 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
I agree. Here's the link:
subject: Owning side of the relationship
The word inverse in a Bidirectional Relationships
mappedBy attribute doubt
what us mean mappedBy="item" ?
Entities association relationship defaults - Choose Correct statement
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015