I have aproblem when deleting objects that are referenced by other objects.
My schema looks something like that:
Somewhere in my sourcecode I have the following lines:
(1) Band band = BandPeer.retrieveByPK(123);
This statement is only executed once. The returned Band object will be
kept in memory. In another place I use this object from time to time in
the following way:
(2) List concerts = band.getConcerts();
Somewhere else (where I don't know anything about the reference) I do the
(3) Concert concert = ConcertPeer.retrieveByPK(456);
If thereafter (2) is called again, the deleted Concert object is still
in the returned list.
Is there any notification mechanism that tells the Band object that it
should update its concert-list, or at least tells it that it should
reread the list from the database?