I noticed that if I want to read some data, and if I donโt have a transaction context, I canโt do it because
org.hibernate.HibernateException: session not found for current stream
A transaction is usually not required to read data.
So, in order for Spring to manage the session, it must have a transaction even for read operations like select ...?
Isn't that overhead?
PS.I do not want to open and close the session manually ...
Many thanks.
source share