Class PersistenceUnitsHolder


  • public final class PersistenceUnitsHolder
    extends Object
    • Constructor Detail

      • PersistenceUnitsHolder

        public PersistenceUnitsHolder()
    • Method Detail

      • initializeJpa

        static void initializeJpa​(List<QuarkusPersistenceUnitDefinition> puDefinitions,
                                  org.hibernate.boot.archive.scan.spi.Scanner scanner,
                                  Collection<Class<? extends org.hibernate.integrator.spi.Integrator>> additionalIntegrators,
                                  PreGeneratedProxies preGeneratedProxies)
        Initialize JPA for use in Quarkus. In a native image. This must be called from within a static init method. The scanner may be null to use the default scanner, or a custom scanner can be used to stop Hibernate scanning. It is expected that the scanner will be provided by Quarkus via its hold of Jandex info.
        Parameters:
        puDefinitions -
        scanner -
      • popRecordedState

        public static RecordedState popRecordedState​(String persistenceUnitName)