I have a table containing primary key and foreign key that references same table. How can I implement this mapping in hibernate... structure of tables is as follows..
Dept (
deptno pk,
dname,
location
)
employee (
empid pk,
ename,
Manager Id Foregin key references Employee(empid),
deptno Foregin key references dept(deptno),
doj date,
)