On Sun, 27 May 2012 06:33:09 -0300, Fight Ice <ricr...@hotmail.com> wrote:


java code:

Transaction ts=session.beginTransaction();
Criteria criteria=session.createCriteria(Item.class);
criteria.add(Restrictions.idEq(product.getItem().getId()));
criteria.setLockMode(LockMode.PESSIMISTIC_WRITE);
Item item=(Item)criteria.list().get(0);
...
ts.commit();
...
Transaction tc=session.beginTransaction();
...
tc.commit();

Then I got the Exception:
Transaction not successfully started.

This is a pure Hibernate question that shouldn't have been posted in the Tapestry users mailing list. Please stay on topic.

--
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to