Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Mapping/Relationship design question

Hi

I'm having a problem mapping Person entities to MobilePhoneNumber entities.
For my purposes, a Person can have many mobile phones (e.g. work, personal)
(@OneToMany) but each MobilePhoneNumber belongs to a single Person
(@OneToOne). How do I define the annotations to get this to work and what do
I use "mappedBy" or "JoinColumns" - or have I got the relationships wrong.

Regards
-- 
View this message in context: http://old.nabble.com/Mapping-Relationship-design-question-tp26148874p26148874.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top