Event and Band have an m:n relationship, with a "Performance" represeting an association of an Event and a Band (it stores the amount paid to the band for that event, and the number of attendees for that band).
In a web application I have an event view which displays event info in addition to the list of performances for that event. Clicking a link allows a user to add a new performance for that event. After the performance is saved, I send the user back to the event list page.... where the new performance is not displayed. I check my underlying mySQL database and the performance is there, it's just not displaying at the application level.
Upon restarting my webapp, the performance displays as intended. My guess is that the cache for the Event object is caching a collection of Performance objects (my performances member). Upon updating the performance table, the Event object does not know that it's performances Collection is now obsolete.
So here's the question.
1) Should I turn off caching for the Event class? If so, can someone explain in detail... I have read other posts about changing the cache implementation... but they are, frankly, unclear about doing it for certain classes. Do I change an XML entry? Do I add some code to initialization steps, etc?
2) Is OJB supposed to know that it's cache is invalid if a subobject in an m:n or 1:n relationship has changed? OJB changed the performance object M that's inside event object N, shouldn't OJB know the status of the object which was affected?
3) Any other recommendations?
Thanks, Aaron
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
