Hi all,
Scanario 1:
I am using casacade="all-delete-orphan" for my BAG collection in my HBM files.
Assume I do have class A and it is been related to class B and class C.
even though, I am using casacade="all-delete-orphan" , if i try to save or delete a particular entity, i cannot save or delete directly class A
I am explaining a DELETE Scenario.
eg delete(objA);
it excepts its child to deleted first say delete(objB) and delete(objC).I am been pushed to do like this.
Why it is so? what does actually casacade="all-delete-orphan" this means in the HBM file.
Scenario 2:
If i remove casacade="all-delete-orphan" in my HBM files. I am able to delete directly my parent class.
For eg : delete(objA).
It does not push me to delete objB or objC which is related to class A.
Kindly put me your thoughts, about what casacade="all-delete-orphan" does really mean.
Thanks for your efforts,
With smile
Sudhagar.S
|