Replacement for org.hibernate.Transactions.isActive() in Hibernate 5

后端 未结 1 726
粉色の甜心
粉色の甜心 2021-01-13 03:33

I\'m migrating from hibernate 4.2.17 to 5.0.7 which works fine so far, but it seems that the method isActive is deprecated. I just can\'t use it anymore.

<
相关标签:
1条回答
  • 2021-01-13 04:00

    As per 5.0 Javadoc:

    hibernateSession.getTransaction().getStatus() != TransactionStatus.ACTIVE

    0 讨论(0)
提交回复
热议问题