With Hibernate 3.2.5
ActionQueue has different arrays: insertions, deletions, etc. All are cleared after a succesful execution:
insertions, deletions, etc. are cleared during the execution of each action and the executions array is cleared at the end (calling afterTransactionCompletion()).
But when an error ocurred during execution (throwing an exception) and a rollback is done, only the executions array is cleared.
¿What is about the other arrays? ¿Should be cleared too?
For example, I try to insert an object that violates a constraint and an exception is thrown. Then I do a rollback, but the insertions array is not cleared.
So I can't use the sessión anymore (stills try to do the wrong insertion on every access)
|