There are some methods to interact with the cache.
You can call PersistenceBroker.clearCache() to completely flush the cache.
You can use PB.removeFromCache(instance) to remove a certain instance from the cache.
when an instance is not longer in the cache OJB is forced to lookup the db to retrieve an object.
So by PB.getObjectByIdentity(new Identity(instance)) you can retrieve a fresh copy of instance that is in sync with the DB.
cheers,
Thomas
Phase Web and Multimedia wrote:
I have an ARTICLE that belongs to a CATEGORY If i delete my CATEGORY and go back to delete my ARTICLE to edit it. I still have a reference showing up to the CATEGORY which was deleted. How do I make sure that the deleted category change appears in my article instance without using the refresh="true" attribute in the collection-descriptor.Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
