Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0.5
Name and version of the database you are using: DB2 8.2
I was wondering if there is anyway to clear the sessioin of only certain collections or objects.
My understanding is whenever I call session.clear() , it clears the session of everything. But what if I have some objects is session which I want to keep and I only want to clear the session of some collections that I do not need and may cause overflow in the session. I am looking for a way to be able to do
session.clear(Collection mycollection)
rather than calling
session.clear()
Thanks for your replies in advance,