Hi,
I have to map a database I didn't design, so I can't change anything of the following:
[Employee] Table:
Employee_ID (PK)
Employee_Name
Employee_Num
[Employee] Object:
Employee.ID
Employee.Name
Employee.Num
Employee.Department
[Department] Table:
Employee_Num (PK)
Department_Name
[Department] Object:
Department.Employee
Department.Name
I don't know how to define the mapping between the Employee and Department table. I considered component and one-to-one, but couldn't make it work.
Any idea?
Thanks a lot in advance.
|