I have a question about transaction management . I am using HIbernateTemplate to access Hibernate . I do understand that If I am using cache , then all the objects are stored in cache and they will be persisted when the session is flushed. When I am using transaction manager , the sessil flush will be done during commit.
My question is how do I get control to this commit process. I want to remove some objects from the Hibernate cache before the session is flushed.