rxue / dictionary

Practice in Java EE
0 stars 0 forks source link

dictionary/jpa : LEARNING : use UserTransaction through narayana-jta #148

Closed rxue closed 1 week ago

rxue commented 1 month ago

testRollbackCreate() failed as expected since no standalone jta mechanism added yet

LEARNING : TypedQuery.getSingleResult() is designed to throw NoResultException if there is no result when it is used

rxue commented 1 month ago

commit above wa on base of

But test failed unexpectedly: entity persisted into the database albeit the fact that UserTransaction.rollback() is called