Hi,
Hibernate version : 3.2.5.Ga
My context : one hibernate session is opened. Inside this session, there are many managed objects, some have relationships in lazy loading mode (1-N,N-1). I start a transaction , perfom a save and a flush. Some business rule triggered by persistence listeners throw an exception : i perform a rollback over the transaction. My session remains opened. I want to resave and flush the session again after the user has fixed some datas. It appears to me that some use cases need the cleaning of hibernate session (mysterious exception) some don't.
Should-i clear the session after a rollback ?
Thanks.
|