Answer the question
In order to leave comments, you need to log in
Is it obligatory in hibernate to close the request with the “begin/commit” bundle?
The question is not so much this, but:
If I request data without a bunch
session.beginTransaction();
session.getTransaction().commit();
Answer the question
In order to leave comments, you need to log in
No, not necessarily.
This indicates that you are starting a new transaction.
The Select request in that case will produce to you the old data if Insert happened in other transaction and new if in the same.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question