db4o - Deleting Child Entities in JDO -
i know if following possible in jdo.
i have 1-n relationship between parent , child class. classes like
@persistencecapable  public class parent {       @persistent      private string name;       @elements(mappedby = "parent", dependent = "true")      private list<children> children;  }  @persistencecapable  public class child {       @persistent      private string name;       @persistent     private parent parent; }   cascading deletes work fine. can delete parent , children removed data store.
if query data store particular child , have query delete it, child removed table of child objects parent's list of children contain null entry.
i guess dumb question there way jdo update parent's list on deletion of child or have myself?
thanks replies.
i recommend db4o without datanucleus layer. getting in way of better performing soluton. we've done testing , found if use db4o directly performs better , uses less resources.
Comments
Post a Comment