wangscript / warp-persist

Automatically exported from code.google.com/p/warp-persist
0 stars 0 forks source link

Read-only Transactions broken with UnitOfWork.TRANSACTION and Hibernate #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem is in HibernateLocalTxnInterceptor

Just need to add the session.isOpen() check at the end of invoke():

if (TransactionType.READ_ONLY.equals(transactional.type()) && session.isOpen())
    session.setFlushMode(savedFlushMode);

Original issue reported on code.google.com by sid...@gmail.com on 13 May 2009 at 5:18

GoogleCodeExporter commented 9 years ago
This issue was closed by r325.

Original comment by robbie.v...@gmail.com on 21 May 2009 at 2:13