You told Hibernate to generate the EmployeeDetail ID from the ID of its employee
property, but you never initialized this property.
Add edetail.setEmployee(employee);
to your code.
You told Hibernate to generate the EmployeeDetail ID from the ID of its employee
property, but you never initialized this property.
Add edetail.setEmployee(employee);
to your code.