public final class PersistenceUnitsHolder extends Object
Constructor and Description |
---|
PersistenceUnitsHolder() |
Modifier and Type | Method and Description |
---|---|
(package private) static List<org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor> |
getPersistenceUnitDescriptors() |
(package private) static RecordedState |
getRecordedState(String persistenceUnitName) |
(package private) static void |
initializeJpa(List<org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor> parsedPersistenceXmlDescriptors,
org.hibernate.boot.archive.scan.spi.Scanner scanner)
Initialize JPA for use in Quarkus.
|
static void initializeJpa(List<org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor> parsedPersistenceXmlDescriptors, org.hibernate.boot.archive.scan.spi.Scanner scanner)
parsedPersistenceXmlDescriptors
will be provided
by calling #loadOriginalXMLParsedDescriptors()
In Quarkus this is
done in Quarkus's JPA ResourceProcessor.
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.parsedPersistenceXmlDescriptors
- scanner
- static List<org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor> getPersistenceUnitDescriptors()
static RecordedState getRecordedState(String persistenceUnitName)
Copyright © 2019 JBoss by Red Hat. All rights reserved.