I have an object that has a collection as one of its properties. I can
create the object, add members to the collection and save it with no
problem. If I check the contents of the database I see the parent object
and all of its children. If I retrieve that same object and remove one
of the child objects in the collection and save the parent again, the
changes to the collection are not reflected in the database. It seems
like OJB is only capable of adding to the contents of a collection but
not removing them. 
 
When I turned on the logging of the SqlGeneratorDefaultImpl I can see
insert and update statements, but never a delete statement to handle the
removal of the child from the collection. 
 
I am using RC3 and have tried using a few different cache
implementations (ObjectCachePerBrokerImpl, ObjectCacheDefaultImpl,
ObjectCacheEmptyImpl) but always get the same result. 
 
What am I missing?
 

Reply via email to