JPA Method
in jakarta.persistence.EntityManager

boolean isJoinedToTransaction()


Determine whether the entity manager is joined to the current transaction. Returns false if the entity manager is not joined to the current transaction or if no transaction is active.
Return:
boolean
Since:
JPA 2.1