Class EntityManagerFactoryBasedFunctionalTest

    • Field Detail

      • NO_MAPPINGS

        protected static final String[] NO_MAPPINGS
      • NO_CLASSES

        protected static final Class<?>[] NO_CLASSES
    • Constructor Detail

      • EntityManagerFactoryBasedFunctionalTest

        public EntityManagerFactoryBasedFunctionalTest()
    • Method Detail

      • entityManagerFactory

        protected jakarta.persistence.EntityManagerFactory entityManagerFactory()
      • entityManagerFactoryBuilt

        protected void entityManagerFactoryBuilt​(jakarta.persistence.EntityManagerFactory factory)
      • strictJpaCompliance

        protected boolean strictJpaCompliance()
      • exportSchema

        protected boolean exportSchema()
      • getMappings

        protected String[] getMappings()
      • addConfigOptions

        protected void addConfigOptions​(Map options)
      • getAnnotatedClasses

        protected Class<?>[] getAnnotatedClasses()
      • applySettings

        protected void applySettings​(Map<Object,​Object> settings)
      • getCachedCollections

        public Map<String,​String> getCachedCollections()
      • getEjb3DD

        public String[] getEjb3DD()
      • afterTest

        @AfterEach
        public final void afterTest()
      • isCleanupTestDataRequired

        protected boolean isCleanupTestDataRequired()
      • cleanupTestData

        protected void cleanupTestData()
        Tests should ideally override this standard implementation; it may not work in all cases (e.g. with @Embeddable entities)
      • inTransaction

        protected void inTransaction​(Consumer<jakarta.persistence.EntityManager> action)
      • fromTransaction

        protected <T> T fromTransaction​(Function<jakarta.persistence.EntityManager,​T> action)
      • inEntityManager

        protected void inEntityManager​(Consumer<jakarta.persistence.EntityManager> action)
      • fromEntityManager

        protected <T> T fromEntityManager​(Function<jakarta.persistence.EntityManager,​T> action)