Could you explain, what happens behind the scene?
Transaction management when using this template in Spring is absolutely unclear.
What if I invoke 10 DAO methods that all use the same Hibernatetemplate
and I invoke them one after another? Every method runs within its own transaction?
It’s not effective is not it?
In general you would put your transactions on your service layer see the Spring docs.