Hibernate 5 Migration Issue : isActive Method Not Found in Transaction Interface

Description

I have migrating Hibernate 3 to Hibernate 5. As isActive() method is available in Hibernate 3 and we are using session.getTransaction().isActive(). As as alternative I am using
TransactionStatus.ACTIVE.equals(session.getTransaction().getStatus())

Please let me know if this one is right approach to check Is this transaction still active or not.

Environment

Hibernate Version : 5.0.4

Activity

Show:
Sanne Grinovero
December 4, 2015, 10:41 AM

Hi,
you opened an issue on Hibernate Search but it looks like you just want to ask a question regarding Hibernate ORM. If so, please use the forums or IRC channels as described here:
http://hibernate.org/community/

For help on migrations, you should be able to find some guidance in the migration guide:
http://hibernate.org/orm/documentation/5.0/

I'll close this issue as it's not related to Hibernate Search, please let me know if I have misunderstood.

Assignee

Unassigned

Reporter

Prashant Kumar

Labels

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Priority

Blocker
Configure