Voyage: refreshing an object back to its repository state

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Voyage: refreshing an object back to its repository state

HilaireFernandes
Hi,

Let's say object A is persisted in a Voyage repository. Then object A is
modified in memory. Next I want to put object A back to its state as
persisted in the repository.

As there is some caching in place, doing a 'ObjectA selectAll' will
return the modified instance in memory, no access to the DB takes place.

As understood, cache can be flushed, but it is overkill, no?

Is it safe to just do:

        VOMongoRepostiry current cache removeObject: objectA

to only flush objectA from cache?

Hilaire

--
Dr. Geo
http://drgeo.eu