david wrote:
If there is an exception thrown or you rollback the transaction the session can NOT be reused. Use a session per-transaction approach will save you from potential grief.
I need more explanation regarding the following statement:
=================
If the Session throws an exception (including any SQLException), you should immediately rollback the transaction, call Session.close() and discard the Session instance. Certain methods of Session will not leave the session in a consistent state.
=================
What those exceptions are? Absolutely any?