Hi all,

I can't seem to find a way to control how child objects are treated when 
removed from the collection of a parent object in a 1:N mapping. By 
default OJB (PB API) seems to delete the child object, regardless of the 
auto-upated/delete setting in repository.xml, but there must be a way to 
avoid this. Sometimes, the child object should continue to exist 
independently of the parent.

I looked through some older messages in this mailing list, and it seems to 
me that in earlier OJB versions the opposite was the case: The child 
objects were not deleted when removed from the collection, and the only 
way to make this happen was to explicitly use a RemovalAwareCollection in 
the parent object to hold the child objects. Now it seems that OJB always 
assigns a RemovalAwareCollection to my collection attributes. How can I 
avoid this?

Thanks,
Gerhard Grosse

Reply via email to