I have some issue with the One-to-many mapping and composite key.
I have a table PropT - Parent
column prop_nbr (PK)
Table PropRoleUserT - Child
Composite PK ( prop_nbr , role_nm)
This has a FK for prop_nbr with PropT.prop_nbr
In both the table prop_nbr is not null.
The issue is when I update a data in both parent and child , it is updating the parent , but it is also updating the child for prop_nbr as null and getting the Not null exception. I am not sure why is it updating the prop_nbr in PropRoleUserT to null when I am sending the data.
I want an immediate help.
I am using the XML mapping from Hibernate 3.0 and not POJO.