Class PersistenceConfigurationDescriptor
java.lang.Object
org.hibernate.jpa.boot.spi.PersistenceConfigurationDescriptor
- All Implemented Interfaces:
PersistenceUnitDescriptor
PersistenceUnitDescriptor wrapper around PersistenceConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceConfigurationDescriptor(PersistenceConfiguration persistenceConfiguration) PersistenceConfigurationDescriptor(HibernatePersistenceConfiguration persistenceConfiguration, StandardServiceRegistry standardServiceRegistry) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcollectSchemaManagementActions(PersistenceConfiguration persistenceConfiguration, BiConsumer<String, Object> collector) Names of all classes in the persistence-unit - explicitly listed, listed in mapping XML and discovered.Default fetching to be applied to to-one mappings when none is specified.Names of JAR files explicitly listed in the persistence-unit.Names of classes explicitly listed in the persistence-unit.Names of mapping-files explicitly listed in the persistence-unit.getName()The persistence unit name.The root url for the persistence unit.The explicitly specified provider class name, ornullif not specified.booleanbooleanWhether scanning for classes should be performed.booleanWhether the use of identifier quoting is in effect for this whole persistence unit.pushClassTransformer(EnhancementContext enhancementContext)
-
Constructor Details
-
PersistenceConfigurationDescriptor
public PersistenceConfigurationDescriptor(@Nonnull HibernatePersistenceConfiguration persistenceConfiguration, @Nonnull StandardServiceRegistry standardServiceRegistry) -
PersistenceConfigurationDescriptor
public PersistenceConfigurationDescriptor(@Nonnull PersistenceConfiguration persistenceConfiguration)
-
-
Method Details
-
collectSchemaManagementActions
@Internal public static void collectSchemaManagementActions(PersistenceConfiguration persistenceConfiguration, BiConsumer<String, Object> collector) -
getProperties
- Specified by:
getPropertiesin interfacePersistenceUnitDescriptor- See Also:
-
getName
Description copied from interface:PersistenceUnitDescriptorThe persistence unit name.- Specified by:
getNamein interfacePersistenceUnitDescriptor- See Also:
-
getProviderClassName
Description copied from interface:PersistenceUnitDescriptorThe explicitly specified provider class name, ornullif not specified.- Specified by:
getProviderClassNamein interfacePersistenceUnitDescriptor- See Also:
-
isUseQuotedIdentifiers
public boolean isUseQuotedIdentifiers()Description copied from interface:PersistenceUnitDescriptorWhether the use of identifier quoting is in effect for this whole persistence unit.- Specified by:
isUseQuotedIdentifiersin interfacePersistenceUnitDescriptor
-
isExcludeUnlistedClasses
public boolean isExcludeUnlistedClasses()Description copied from interface:PersistenceUnitDescriptorWhether scanning for classes should be performed. If not, the list of classes available is limited to:
- classes listed in
PersistenceUnitDescriptor.getManagedClassNames() - classes named in all
PersistenceUnitDescriptor.getMappingFileNames() - classes discovered in
PersistenceUnitDescriptor.getJarFileUrls()
- Specified by:
isExcludeUnlistedClassesin interfacePersistenceUnitDescriptor- See Also:
- classes listed in
-
getDefaultToOneFetchType
Description copied from interface:PersistenceUnitDescriptorDefault fetching to be applied to to-one mappings when none is specified.- Specified by:
getDefaultToOneFetchTypein interfacePersistenceUnitDescriptor- See Also:
-
getPersistenceUnitTransactionType
- Specified by:
getPersistenceUnitTransactionTypein interfacePersistenceUnitDescriptor- See Also:
-
getManagedClassNames
Description copied from interface:PersistenceUnitDescriptorNames of classes explicitly listed in the persistence-unit.- Specified by:
getManagedClassNamesin interfacePersistenceUnitDescriptor- See Also:
-
getAllClassNames
Description copied from interface:PersistenceUnitDescriptorNames of all classes in the persistence-unit - explicitly listed, listed in mapping XML and discovered.- Specified by:
getAllClassNamesin interfacePersistenceUnitDescriptor- See Also:
-
getMappingFileNames
Description copied from interface:PersistenceUnitDescriptorNames of mapping-files explicitly listed in the persistence-unit.- Specified by:
getMappingFileNamesin interfacePersistenceUnitDescriptor- See Also:
-
getNonJtaDataSource
- Specified by:
getNonJtaDataSourcein interfacePersistenceUnitDescriptor- See Also:
-
getJtaDataSource
- Specified by:
getJtaDataSourcein interfacePersistenceUnitDescriptor- See Also:
-
getValidationMode
- Specified by:
getValidationModein interfacePersistenceUnitDescriptor- See Also:
-
getClassLoader
- Specified by:
getClassLoaderin interfacePersistenceUnitDescriptor- See Also:
-
getTempClassLoader
- Specified by:
getTempClassLoaderin interfacePersistenceUnitDescriptor- See Also:
-
isClassTransformerRegistrationDisabled
public boolean isClassTransformerRegistrationDisabled()- Specified by:
isClassTransformerRegistrationDisabledin interfacePersistenceUnitDescriptor
-
pushClassTransformer
- Specified by:
pushClassTransformerin interfacePersistenceUnitDescriptor
-
getPersistenceUnitRootUrl
Description copied from interface:PersistenceUnitDescriptorThe root url for the persistence unit.- Specified by:
getPersistenceUnitRootUrlin interfacePersistenceUnitDescriptor
-
getJarFileUrls
Description copied from interface:PersistenceUnitDescriptorNames of JAR files explicitly listed in the persistence-unit.- Specified by:
getJarFileUrlsin interfacePersistenceUnitDescriptor- See Also:
-