Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Custom SQL for relationship

Can you post your Entity definition (source)? In my understanding:
  • Company and Employee @ManyToMany-Relationship = yes/no?
  • Usually you define a JoinTable, if it is @ManyToMany
  • Why don't you store the default Company with @OneToOne as extra attribute, besides design issues?
Bálint Kriván wrote:
I have to entites: Employee, Company. An Employee can be employed in many Companies, but there is a special Company which should be interpreted as the default one


View this message in context: Re: Custom SQL for relationship
Sent from the EclipseLink - Users mailing list archive at Nabble.com.

Back to the top