My obj has a collection, and in the xml mapping, i set the autodelete to true.
But when i perform a delete action, the collection is not deleted. what i did is following:
MyObj obj = new MyObj(); obj.GUIDValue = objid; obj.delete();
must I populate the whole collection first?
It would probably help to retrieve/find the object before deleting it :-)
The delete code will only remove objects that are actually in the collection.
The new MyObj will only contain an empty collection so there will be nothing to delete.
Log in to post a comment.
My obj has a collection, and in the xml mapping, i set the autodelete to true.
But when i perform a delete action, the collection is not deleted. what i did is following:
MyObj obj = new MyObj();
obj.GUIDValue = objid;
obj.delete();
must I populate the whole collection first?
It would probably help to retrieve/find the object before deleting it :-)
The delete code will only remove objects that are actually in the collection.
The new MyObj will only contain an empty collection so there will be nothing to delete.