protected Query detachQueryNonTxInvocation(EntityManager underlyingEntityManager, Query underLyingQuery) { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { return new QueryNonTxInvocationDetacher(underlyingEntityManager, underLyingQuery); } return underLyingQuery; }
protected Query detachQueryNonTxInvocation(EntityManager underlyingEntityManager, Query underLyingQuery) { if (!this.isExtendedPersistenceContext() && !this.isInTx()) { return new QueryNonTxInvocationDetacher(underlyingEntityManager, underLyingQuery); } return underLyingQuery; }