In using OJB 1.0.3, we are trying to add a document management piece into our system, we are trying to use extent-class for a first time to represent a Document and a DocumentWithDisplays. Basically the DocumentWithDisplays is a Document with a collection of proxied Display objects.
This is working except for one thing.
1. Listing the documents with Displays works.
2. Deleting one of the Displays separately, not as part of the DocumentWIthDisplays query, works in the database, but when the screen attempts to re-get and re-draw the display as in #1, the document does not show up as cleared out of the proxied collection of Displays. This occurs even though I have done a broker.removeFromCache(object) of the deleted object.
3. When I do a different query elsewhere, the object is recognized as gone, and all of a sudden it shows up in #1 correctly, but not until a different query is done.
Sounds confusing, but shouldn't the removeFromCache() have cleared the object reference and not allowed it to remained in the proxied collection of Displays?
Here is my extent-class XML description. Maybe I am doing something wrong you can point out. Thank you.
Seems like when I have an object A with a proxied collection of B, that when I delete and remove B from cache seperately, A's collection, upon a new query does not get the change. This does not just have to do with delete, but any change to B.