Package io.quarkus.hibernate.orm.runtime
Class PersistenceUnitsHolder
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder
-
public final class PersistenceUnitsHolder extends Object
-
-
Constructor Summary
Constructors Constructor Description PersistenceUnitsHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RecordedState
createMetadata(QuarkusPersistenceUnitDefinition unit, org.hibernate.boot.archive.scan.spi.Scanner scanner, Collection<Class<? extends org.hibernate.integrator.spi.Integrator>> additionalIntegrators, PreGeneratedProxies proxyDefinitions)
static List<RuntimePersistenceUnitDescriptor>
getPersistenceUnitDescriptors()
(package private) 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.static RecordedState
popRecordedState(String persistenceUnitName)
-
-
-
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
-
-
getPersistenceUnitDescriptors
public static List<RuntimePersistenceUnitDescriptor> getPersistenceUnitDescriptors()
-
popRecordedState
public static RecordedState popRecordedState(String persistenceUnitName)
-
createMetadata
public static RecordedState createMetadata(QuarkusPersistenceUnitDefinition unit, org.hibernate.boot.archive.scan.spi.Scanner scanner, Collection<Class<? extends org.hibernate.integrator.spi.Integrator>> additionalIntegrators, PreGeneratedProxies proxyDefinitions)
-
-