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 defaultPropertyAccessStrategy
name 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.boolean
Whether auto-importing of entity names (for queries) is enabled.boolean
Whether plural attributes are lazy by default if not specified in the mapping.boolean
Whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.boolean
Whether database identifiers be quoted by defaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:EffectiveMappingDefaults
The default database catalog name to use- Specified by:
getDefaultCatalogName
in interfaceEffectiveMappingDefaults
- See Also:
-
getDefaultSchemaName
Description copied from interface:EffectiveMappingDefaults
The default database schema name to use- Specified by:
getDefaultSchemaName
in interfaceEffectiveMappingDefaults
- See Also:
-
isDefaultQuoteIdentifiers
public boolean isDefaultQuoteIdentifiers()Description copied from interface:EffectiveMappingDefaults
Whether database identifiers be quoted by default- Specified by:
isDefaultQuoteIdentifiers
in interfaceEffectiveMappingDefaults
- See Also:
-
getDefaultIdColumnName
Description copied from interface:EffectiveMappingDefaults
The default column name to use for the identifier column if none specified in the mapping. Falls back to "id".- Specified by:
getDefaultIdColumnName
in interfaceEffectiveMappingDefaults
-
getDefaultDiscriminatorColumnName
Description copied from interface:EffectiveMappingDefaults
The default column name to use for the discriminator column if none specified in the mapping. Falls back to "class".- Specified by:
getDefaultDiscriminatorColumnName
in interfaceEffectiveMappingDefaults
-
getDefaultTenantIdColumnName
Description copied from interface:EffectiveMappingDefaults
The default column name to use for the tenant identifier column if none is specified in the mapping. Falls back to "tenant_id".- Specified by:
getDefaultTenantIdColumnName
in interfaceEffectiveMappingDefaults
-
getDefaultPackageName
Description copied from interface:EffectiveMappingDefaults
The 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:
getDefaultPackageName
in interfaceEffectiveMappingDefaults
- See Also:
-
isDefaultAutoImport
public boolean isDefaultAutoImport()Description copied from interface:EffectiveMappingDefaults
Whether auto-importing of entity names (for queries) is enabled.- Specified by:
isDefaultAutoImport
in interfaceEffectiveMappingDefaults
- See Also:
-
getDefaultCascadeTypes
Description copied from interface:EffectiveMappingDefaults
The default cascade styles to apply to associations. -
getDefaultPropertyAccessType
Description copied from interface:EffectiveMappingDefaults
The default AccessType to use if not specified in the mapping.- Specified by:
getDefaultPropertyAccessType
in interfaceEffectiveMappingDefaults
- See Also:
-
getDefaultAccessStrategyName
Description copied from interface:EffectiveMappingDefaults
The defaultPropertyAccessStrategy
name to use if none specified in the mapping. -
isDefaultEntityLaziness
public boolean isDefaultEntityLaziness()Description copied from interface:EffectiveMappingDefaults
Whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.- Specified by:
isDefaultEntityLaziness
in interfaceEffectiveMappingDefaults
- See Also:
-
isDefaultCollectionLaziness
public boolean isDefaultCollectionLaziness()Description copied from interface:EffectiveMappingDefaults
Whether plural attributes are lazy by default if not specified in the mapping.- Specified by:
isDefaultCollectionLaziness
in interfaceEffectiveMappingDefaults
- See Also:
-
getDefaultCacheAccessType
Description copied from interface:EffectiveMappingDefaults
The default cache access strategy to use if none is specified- Specified by:
getDefaultCacheAccessType
in interfaceEffectiveMappingDefaults
- See Also:
-