posted 11 years ago
We Are using hibernate with relational database having cascade constraints on table.
As well as same thing in hibernate mapping file also.
But while doing this we are getting error as "Cannot add or update a child row: a foreign key constraint fails (`test_36675`.`sg_shipment`, CONSTRAINT `sg_shipment_ibfk_4` FOREIGN KEY (`STAGE_ID`) REFERENCES `sg_shipment_stage` (`STAGE_ID`) ON DELETE CASCADE ON UPDATE NO ACTION)"