Class OverriddenMappingDefaults
java.lang.Object
org.hibernate.boot.model.source.internal.OverriddenMappingDefaults
- All Implemented Interfaces:
EffectiveMappingDefaults
Represents a "nested level" in the mapping defaults stack.
-
Nested Class Summary
Nested Classes -
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
ConstructorsConstructorDescriptionOverriddenMappingDefaults
(String implicitSchemaName, String implicitCatalogName, boolean implicitlyQuoteIdentifiers, String implicitIdColumnName, String implicitTenantIdColumnName, String implicitDiscriminatorColumnName, String implicitPackageName, boolean autoImportEnabled, EnumSet<CascadeType> cascadeTypes, AccessType implicitPropertyAccessType, String implicitPropertyAccessorName, boolean entitiesImplicitlyLazy, boolean pluralAttributesImplicitlyLazy, AccessType implicitCacheAccessType, CollectionClassification implicitListClassification) -
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 default
-
Constructor Details
-
OverriddenMappingDefaults
public OverriddenMappingDefaults(String implicitSchemaName, String implicitCatalogName, boolean implicitlyQuoteIdentifiers, String implicitIdColumnName, String implicitTenantIdColumnName, String implicitDiscriminatorColumnName, String implicitPackageName, boolean autoImportEnabled, EnumSet<CascadeType> cascadeTypes, AccessType implicitPropertyAccessType, String implicitPropertyAccessorName, boolean entitiesImplicitlyLazy, boolean pluralAttributesImplicitlyLazy, AccessType implicitCacheAccessType, CollectionClassification implicitListClassification)
-
-
Method Details
-
getDefaultSchemaName
Description copied from interface:EffectiveMappingDefaults
The default database schema name to use- Specified by:
getDefaultSchemaName
in interfaceEffectiveMappingDefaults
- See Also:
-
getDefaultCatalogName
Description copied from interface:EffectiveMappingDefaults
The default database catalog name to use- Specified by:
getDefaultCatalogName
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:
-
getDefaultListClassification
- Specified by:
getDefaultListClassification
in interfaceEffectiveMappingDefaults
-