I am using Eclipselink to model the following relationship:
User (many to many) Role
I also have one table called "Attribute", which contain a USER_ID and ROLE_ID column
Therefore for one "Attribute" object, it will reference to one User and one Role
I can successfully map the many to many between User and Role, but don't know how to map the Attribute entity
I try the following but the mapping result is wrong:
How can I specify the User and Role relationship?