@Override protected EntityManager getEntityManager() { EntityManager entityManager; boolean isInTx; isInTx = TransactionUtil.isInTx(transactionManager); if (isInTx) { entityManager = getOrCreateTransactionScopedEntityManager(emf, puScopedName, properties, synchronizationType); } else { entityManager = NonTxEmCloser.get(puScopedName); if (entityManager == null) { entityManager = createEntityManager(emf, properties, synchronizationType); NonTxEmCloser.add(puScopedName, entityManager); } } return entityManager; }
@Override protected EntityManager getEntityManager() { EntityManager entityManager; boolean isInTx; isInTx = TransactionUtil.isInTx(transactionManager); if (isInTx) { entityManager = getOrCreateTransactionScopedEntityManager(emf, puScopedName, properties, synchronizationType); } else { entityManager = NonTxEmCloser.get(puScopedName); if (entityManager == null) { entityManager = createEntityManager(emf, properties, synchronizationType); NonTxEmCloser.add(puScopedName, entityManager); } } return entityManager; }
EntityManager entityManager = TransactionUtil.getTransactionScopedEntityManager(puScopedName, transactionSynchronizationRegistry); if (entityManager == null) { entityManager = createEntityManager(emf, properties, synchronizationType); if (ROOT_LOGGER.isDebugEnabled()) { ROOT_LOGGER.debugf("%s: created entity manager session %s", TransactionUtil.getEntityManagerDetails(entityManager, scopedPuName),
EntityManager entityManager = TransactionUtil.getTransactionScopedEntityManager(puScopedName, transactionSynchronizationRegistry); if (entityManager == null) { entityManager = createEntityManager(emf, properties, synchronizationType); if (ROOT_LOGGER.isDebugEnabled()) { ROOT_LOGGER.debugf("%s: created entity manager session %s", TransactionUtil.getEntityManagerDetails(entityManager, scopedPuName),