wpgsh / cloud4water

Apache License 2.0
0 stars 0 forks source link

TransactionRequiredException occured in the net.wapwag.wemp.h2.hibernate.WaterEquipmentDaoTest#testRemoveUserByOrg #24

Closed asd1245dss closed 7 years ago

asd1245dss commented 7 years ago

I move the wemp dao unit test to the wemp.h2.hibernate bundle and update the config for the jta transaction too.When I run the WaterEquipmentDaoTest,all the test passed except some remove* method which throws the javax.persistence.TransactionRequiredException: Executing an update/delete query

alexlukichev commented 7 years ago

The fix for the reported issue is to have a separate transaction manager per transaction. See 364aa0f.