jdl wrote:
soorajm wrote:
do i need to set any thing else to use all-delete-orphan.
Try "all,delete-orphan" instead.
Are you sure you're using v2.1.8 ?
The value "all-delete-orphan" is correct under that version. The cascade values were changed in v3.0.x.
And delete-orphan is for deleting ALL of the children in the event you delete the parent. You know, deleting children that would otherwise be orphaned.
Actually, now that I realize it's a <one-to-one> mapping, you just need to specify cascade="delete" or cascade="all" to ensure the child is deleted.