You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Jeremy Wilkerson <jj...@ubtanet.com> on 2003/08/11 22:03:11 UTC
auto-update with ODMG
Unless I'm doing something wrong, it seems that auto-update collections
don't work correctly with the ODMG api. Is there a known problem?
I'm using implicit locking (LockAssociations=READ). If I add an object
to a Collection that uses auto-update, then I call the (new)
Transaction#checkpoint method, the object is stored in the database, as
one would expect. But then if I make modifications to that object later
in the same transaction, those modifications are not saved to the
database when I call checkpoint or commit.
I found a work-around, which is to set the collections as auto-delete
but not auto-update, then explicity acquire a read lock on every object
in every collection. But it seems that this doesn't work either if I
delete an object and add an object at the same time.
I would be happy to try to track down the problem when I have time, but
I thought maybe someone more familiar with the OJB code could fix this
very easily.
Jeremy Wilkerson
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org