hi Ranchers, i have 2 beans (employee,address)with the properties Employee: empid,empname,empsal,address[Set] : pk: empid Address : addid,empid,city,state pk: composite id (addid,empid)
and my hbm file
when i load it is giving me the data from two tables. But when i insert it gives me the error.
This is what I probably should have said the first time... I recreated your situation (see code below) and I only get the constraint violation if I save address without first saving employee. Could there be a difference in our implementations?
[ March 07, 2007: Message edited by: David Madouros ]