Menu

auto delete setting

T.Mo
2005-04-14
2013-03-07
  • T.Mo

    T.Mo - 2005-04-14

    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?

     
    • Nobody/Anonymous

      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.