I have three an object Q which has many L objects. Another object V also has many L objects. I'm just trying to delete one object L, but I can't. I'm using session.delete (l_instance), but it does not delete it. I've tryed the following situations:
Code:
session.delete(l_instance);
session.flush();
session.close();
My mapping file has a default-cascade this way: default-cascade="save-update"
So, I receive a comprehensive message that tells me that is not possible, because flushing and updating is dangerous. So, this code won't be used any more.
The second situation is a default-cascade="all". This way, all the data in all objects related to the L object are deleted.
So...all i need is to delete a simple child object. Any help??
Thanks a lot