posted 13 years ago
hello,
i am beginner to hibernate. please guide me with one to one mapping.
DB table structure:
Employee.java
EmployeeContact.java
Employee.hbm.xml
EmployeeContact.hbm.xml
Here in EmployeeBean.java, i construct employee object
Here in EmployeeDaoImpl.java i save the employee object
The problem is one to one mapping. The EmployeeContact object gets saved except employee_id. EMPLOYEE_ID remains null in EMPLOYEE_CONTACT table. Please guide me where the configuration is fallen short.