Hi,
for a superclass Person, I have two subclasses declared as follows:
/**
*
*
* @hibernate.class
* table="PERSON"
*
* @hibernate.joined-subclass
* table="PLAYER"
*
* @hibernate.joined-subclass-key
* column="PLAYER_ID"
*
* @hibernate.joined-subclass
* table="TEAM_MANAGER"
*
* @hibernate.joined-subclass-key
* column="TEAM_MANAGER_ID"
*/
public class Person implements IPerson, Serializable{
...
}
When I generate the mapping, I get this output:
...
<joined-subclass
name="de.soccermanager.person.entity.Player"
table="PLAYER"
dynamic-update="false"
dynamic-insert="false"
>
<key
column="PLAYER_ID"
/>
...
</joined-subclass>
<joined-subclass
name="de.soccermanager.person.entity.TeamManager"
table="TEAM_MANAGER"
dynamic-update="false"
dynamic-insert="false"
>
<key
column="PLAYER_ID"
/>
...
</joined-subclass>
For both subclasses the generated key-column is set to PLAYER_ID. However, for the class TEAM_MANAGER it should be TEAM_MANAGER_ID. What is wrong?
thx,
sven
|