This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If i understood your question correctly, you want to know the effect of reading an entity without having any transaction. If so, then there is no adverse effect. Transactions are supposed to be used where you are making any kind of change in the database (like insert/update/delete operations). Just to read an Entity, transaction should not be used.
Joined: May 05, 2011
Thanks for reply.
In the following post it says, if we access an entity in non-transactional way, we need to enable auto-commit in hibernate configuration.
If not, once we close the session (we used for retrieving the entity) the database connection returning to the pool will have some issues/memory leaks.