Hi,
I have an object which has lazy collection properties. I hand this object to the application (a swing app, so now way to keep Session open). When the data from the collection is needed (User expands a tree node), the Object is passed back to the server, where I want to initialize the collections, and pass the object back to the client again.
I have this working so far allready, however to initialize the Collections, I have to do a Session.load() with the id of the Object passed in to the Server.
Is there another way to reassociate the Object with the Session, so I can initialize the Collection, without the need to reload the Object from the DB?
Michael
|