Putting Select Statement on Hibernate Transaction
- by Mark Estrada
Hi All,
I have been reading the net for a while regarding Hibernate but I can seem to understand one concept regarding Transaction.
On some site that I have visit, Select statements are in transaction mode like this.
public List<Book> readAll() {
Session session = HibernateUtil.getSessionFactory()
.getCurrentSession();
…