Package org.hibernate.boot.internal
Class RootMappingDefaults
java.lang.Object
org.hibernate.boot.internal.RootMappingDefaults
- All Implemented Interfaces:
EffectiveMappingDefaults
Base set of defaults for all mappings
-
Field Summary
Fields inherited from interface org.hibernate.boot.spi.EffectiveMappingDefaults
DEFAULT_DISCRIMINATOR_COLUMN_NAME, DEFAULT_IDENTIFIER_COLUMN_NAME, DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME -
Constructor Summary
ConstructorsConstructorDescriptionRootMappingDefaults(MappingDefaults mappingDefaults, PersistenceUnitMetadata persistenceUnitMetadata) -
Method Summary
Modifier and TypeMethodDescriptionThe defaultPropertyAccessStrategyname to use if none specified in the mapping.The default cache access strategy to use if none is specifiedThe default cascade styles to apply to associations.The default database catalog name to useThe default column name to use for the discriminator column if none specified in the mapping.The default column name to use for the identifier column if none specified in the mapping.The default package name to use if none specified in XML mappings.The default AccessType to use if not specified in the mapping.The default database schema name to useThe default column name to use for the tenant identifier column if none is specified in the mapping.booleanWhether auto-importing of entity names (for queries) is enabled.booleanWhether plural attributes are lazy by default if not specified in the mapping.booleanWhether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.booleanWhether database identifiers be quoted by defaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.spi.EffectiveMappingDefaults
getDefaultListClassification
-
Constructor Details
-
RootMappingDefaults
public RootMappingDefaults(MappingDefaults mappingDefaults, PersistenceUnitMetadata persistenceUnitMetadata)
-
-
Method Details
-
getDefaultCatalogName
Description copied from interface:EffectiveMappingDefaultsThe default database catalog name to use- Specified by:
getDefaultCatalogNamein interfaceEffectiveMappingDefaults- See Also:
-
getDefaultSchemaName
Description copied from interface:EffectiveMappingDefaultsThe default database schema name to use- Specified by:
getDefaultSchemaNamein interfaceEffectiveMappingDefaults- See Also:
-
isDefaultQuoteIdentifiers
public boolean isDefaultQuoteIdentifiers()Description copied from interface:EffectiveMappingDefaultsWhether database identifiers be quoted by default- Specified by:
isDefaultQuoteIdentifiersin interfaceEffectiveMappingDefaults- See Also:
-
getDefaultIdColumnName
Description copied from interface:EffectiveMappingDefaultsThe default column name to use for the identifier column if none specified in the mapping. Falls back to "id".- Specified by:
getDefaultIdColumnNamein interfaceEffectiveMappingDefaults
-
getDefaultDiscriminatorColumnName
Description copied from interface:EffectiveMappingDefaultsThe default column name to use for the discriminator column if none specified in the mapping. Falls back to "class".- Specified by:
getDefaultDiscriminatorColumnNamein interfaceEffectiveMappingDefaults
-
getDefaultTenantIdColumnName
Description copied from interface:EffectiveMappingDefaultsThe default column name to use for the tenant identifier column if none is specified in the mapping. Falls back to "tenant_id".- Specified by:
getDefaultTenantIdColumnNamein interfaceEffectiveMappingDefaults
-
getDefaultPackageName
Description copied from interface:EffectiveMappingDefaultsThe default package name to use if none specified in XML mappings. Useful when all (or most) domain classes are in a single package.- Specified by:
getDefaultPackageNamein interfaceEffectiveMappingDefaults- See Also:
-
isDefaultAutoImport
public boolean isDefaultAutoImport()Description copied from interface:EffectiveMappingDefaultsWhether auto-importing of entity names (for queries) is enabled.- Specified by:
isDefaultAutoImportin interfaceEffectiveMappingDefaults- See Also:
-
getDefaultCascadeTypes
Description copied from interface:EffectiveMappingDefaultsThe default cascade styles to apply to associations.- Specified by:
getDefaultCascadeTypesin interfaceEffectiveMappingDefaults- See Also:
-
getDefaultPropertyAccessType
Description copied from interface:EffectiveMappingDefaultsThe default AccessType to use if not specified in the mapping.- Specified by:
getDefaultPropertyAccessTypein interfaceEffectiveMappingDefaults- See Also:
-
getDefaultAccessStrategyName
Description copied from interface:EffectiveMappingDefaultsThe defaultPropertyAccessStrategyname to use if none specified in the mapping.- Specified by:
getDefaultAccessStrategyNamein interfaceEffectiveMappingDefaults- See Also:
-
isDefaultEntityLaziness
public boolean isDefaultEntityLaziness()Description copied from interface:EffectiveMappingDefaultsWhether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.- Specified by:
isDefaultEntityLazinessin interfaceEffectiveMappingDefaults- See Also:
-
isDefaultCollectionLaziness
public boolean isDefaultCollectionLaziness()Description copied from interface:EffectiveMappingDefaultsWhether plural attributes are lazy by default if not specified in the mapping.- Specified by:
isDefaultCollectionLazinessin interfaceEffectiveMappingDefaults- See Also:
-
getDefaultCacheAccessType
Description copied from interface:EffectiveMappingDefaultsThe default cache access strategy to use if none is specified- Specified by:
getDefaultCacheAccessTypein interfaceEffectiveMappingDefaults- See Also:
-