Boundary « Transaction « JPA Q&A





1. Hibernate transaction boundaries    stackoverflow.com

I'm using Hibernate (in a Grails app) and the transactional boundaries are service methods, i.e. every time a service method is called a transaction starts, and every time a service call ...

2. Transaction Boundary, StatelessSessions and Result Scrolling    forum.hibernate.org

Regular Joined: Tue Oct 10, 2006 2:21 pm Posts: 58 I had an embarrassing incident yesterday. Code which had passed my automated integration test suite failed in production. This proved to involve StatelessSessions, Scrollable Results and transaction commitment. Code: private ScrollableResults query(StatelessSession sess) { return sess.createQuery(hql) ...

3. transaction boundaries are violated?    forum.hibernate.org

If I use two separate transactions in one session to read objects and between those I update the object read in first transaction - then the object is written to the database when second transaction is commited, even though I read completely different objects. As far as I understand the code below (between sessionFactory.openSession() and session.close()) is translated into something like ...