posted 13 years ago
Hi All,
I have 2 tables Person and Employee.
In Person table person's name is primary key.
In Employee table, there is a composite key, which consists of person's name(foreign key) and employee id.
Mapping file for above scenarios are:
for class person:
for employee class:
But I am getting exception.What is the correct way to make foreign key aa part of composite key.
When set will be used???
Thanks in advance