Class DiagnosticsEntityManager

java.lang.Object
org.apache.fineract.infrastructure.core.diagnostics.jpa.DiagnosticsEntityManager
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Profile("diagnostics") @Component public class DiagnosticsEntityManager extends Object implements org.springframework.context.ApplicationContextAware
This class can be used for IntelliJ debugging purposes to access the current transaction bound EntityManager instance.

With Alt + F8 you can run evaluations in IntelliJ and this class makes it easier to access the EntityManager and to see what kind of changes are pending within the Persistence Context.

To enable this, run Fineract with the diagnostics profile.
  • Constructor Details

    • DiagnosticsEntityManager

      public DiagnosticsEntityManager()
  • Method Details

    • getCurrentEntityManager

      public static org.eclipse.persistence.internal.jpa.EntityManagerImpl getCurrentEntityManager()
    • getCurrentChanges

      public static org.eclipse.persistence.sessions.changesets.UnitOfWorkChangeSet getCurrentChanges()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException