sets cascaded delete behaviour.
sets cascaded delete behaviour.
Setting cascadeOnDelete to true will result in the deletion of all member objects of instances of this class, if they are passed to com.db4o.ObjectContainer.Delete .
Caution !
This setting will also trigger deletion of old member objects, on calls to com.db4o.ObjectContainer.Set .
An example of the behaviour:
ObjectContainer con;
Bar bar1 = new Bar();
Bar bar2 = new Bar();
foo.bar = bar1;
con.set(foo); // bar1 is stored as a member of foo
foo.bar = bar2;
con.set(foo); // bar2 is stored as a member of foo
ObjectClass Interface | com.db4o.config Namespace | com.db4o.config.ObjectField.CascadeOnDelete | com.db4o.ObjectContainer.Delete | Using callbacks