Hello,
Once I get an object with session.get() how can I turn it into a detached object without closing the session?
I have gone over the API and found out about session.evict() but I am not sure.
Also, how can I associate the detached object later on with the session.
In summary this is what I need to do:
myobject = session.get(myobject.class, id)
// process my object
// detach my object
myobject = null;
// do some more processing
// recreate myobject
// attach myobject with session again
session.save(myobject)
Thanks,
-O.B.
|