Regular |
|
Joined: Tue Jul 13, 2004 2:27 am Posts: 73 Location: Singapore
|
Hi,
A question on the 'many-to-one' in ternary composite-element. Let's say I have this mapping:
<class name="Program" table="PROGRAMS">
<id column="PROGRAM_ID" ......>
<set name="userRoles" table="PROGRAM_USER_ROLE" lazy="true">
<key column="PROGRAM_ID"/>
<composite-element class="UserRoles">
<many-to-one name="user" column="USER_ID" class="User"/>
<many-to-one name="role" column="ROLE_ID" class="Role"/>
</composite-element>
</set>
</class>
So what's the relationship between Program and UserRoles ? what's the relationship between UserRole and User, Role ?
|
|