| Re: [eclipselink-users] Mapping/Relationship design question |
hope this is a start /michael
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