Quote:
I've 2 tables:
Table1
{
ID (PK) int
ActorTypeID int
}
Table2
{
ID (PK) int
ActorTypeID int
ActorID int
}
Relations :
1. Table1.ID<-->Table2.ActorID
2. Table1.ActorTypeID<-->Table2.ActorTypeID
I forgot to say that I have another one table:
Quote:
Table3
{
ID (PK) int
EmployeeID int
}
Relations:
1. Table3.EmployeeID<-->Table1.ID
And if I use <composite-id> for Table1:
Quote:
<composite-id>
<key-property name="Id" column="ID"/>
<key-property name="ActorTypeID" column="ActorTypeID"/>
</composite-id>
Then for Table3 I need to define relation on 2 columns - but I've relation only on one column - How to corect write a map file for this scheme?