Is there any way to uninitialize back already loaded lazy collection, so that the next call to this collection would cause the loading data from the DB again. It would be useful to free memory occupied by a large collection that is no longer needed in long-running sessions, but the parent object is still need for conversation. E.g. top-level objects in the tree component are needed for the whole duration of the conversation, but children elements could be lazy loaded when a node is expanded and unloaded when collapsed.
|