Package org.hibernate.boot.spi
Interface MappingDefaults
- All Known Implementing Classes:
MetadataBuilderImpl.MappingDefaultsImpl
public interface MappingDefaults
Values to use as defaults in the absence of certain mapping information.
- Since:
- 5.0
- Implementation Specification:
- Designed with stacking in mind, such that the defaults can be overridden at various levels using simple wrapping and delegation. The "global" level is configuration settings.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanIdentifies whether plural attributes are lazy by default if not specified in the mapping.booleanIdentifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.The cache access type to use if none is specifiedIdentifies the cascade style to apply to associations if none specified in the mapping.Identifies the database catalog name to use if none specified in the mapping.Identifies the column name to use for the discriminator column if none specified in the mapping.Identifies the column name to use for the identifier column if none specified in the mapping.Collection semantics to be applied toListattributes with no explicit configurationIdentifies the package name to use if none specified in the mapping.The defaultPropertyAccessStrategyto use if none specified in the mapping.Identifies the database schema name to use if none specified in the mapping.Identifies the column name to use for the tenant identifier column if none is specified in the mapping.booleanIs auto-importing of entity (short) names enabled?booleanShould all database identifiers encountered in this context be implicitly quoted?trueindicates that all identifier encountered within this context should be quoted.
-
Field Details
-
DEFAULT_IDENTIFIER_COLUMN_NAME
- See Also:
-
DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME
- See Also:
-
DEFAULT_DISCRIMINATOR_COLUMN_NAME
- See Also:
-
DEFAULT_CASCADE_NAME
- See Also:
-
DEFAULT_PROPERTY_ACCESS_NAME
- See Also:
-
-
Method Details
-
getImplicitSchemaName
String getImplicitSchemaName()Identifies the database schema name to use if none specified in the mapping.- Returns:
- The implicit schema name; may be
null - See Also:
-
getImplicitCatalogName
String getImplicitCatalogName()Identifies the database catalog name to use if none specified in the mapping.- Returns:
- The implicit catalog name; may be
null - See Also:
-
shouldImplicitlyQuoteIdentifiers
boolean shouldImplicitlyQuoteIdentifiers()Should all database identifiers encountered in this context be implicitly quoted?trueindicates that all identifier encountered within this context should be quoted.falseindicates indicates that identifiers within this context are only quoted if explicitly quoted.- Returns:
true/false
-
getImplicitIdColumnName
String getImplicitIdColumnName()Identifies the column name to use for the identifier column if none specified in the mapping.- Returns:
- The implicit identifier column name
-
getImplicitTenantIdColumnName
String getImplicitTenantIdColumnName()Identifies the column name to use for the tenant identifier column if none is specified in the mapping.- Returns:
- The implicit tenant identifier column name
-
getImplicitDiscriminatorColumnName
String getImplicitDiscriminatorColumnName()Identifies the column name to use for the discriminator column if none specified in the mapping.- Returns:
- The implicit discriminator column name
-
getImplicitPackageName
String getImplicitPackageName()Identifies the package name to use if none specified in the mapping. Really only pertinent forhbm.xmlmappings.- Returns:
- The implicit package name.
-
isAutoImportEnabled
boolean isAutoImportEnabled()Is auto-importing of entity (short) names enabled?- Returns:
trueif auto-importing is enabled;falseotherwise.
-
getImplicitCascadeStyleName
String getImplicitCascadeStyleName()Identifies the cascade style to apply to associations if none specified in the mapping.- Returns:
- The implicit cascade style
-
getImplicitPropertyAccessorName
String getImplicitPropertyAccessorName()The defaultPropertyAccessStrategyto use if none specified in the mapping.- See Also:
-
areEntitiesImplicitlyLazy
boolean areEntitiesImplicitlyLazy()Identifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.- Returns:
- The implicit association laziness
-
areCollectionsImplicitlyLazy
boolean areCollectionsImplicitlyLazy()Identifies whether plural attributes are lazy by default if not specified in the mapping.- Returns:
- The implicit association laziness
-
getImplicitCacheAccessType
AccessType getImplicitCacheAccessType()The cache access type to use if none is specified- See Also:
-
getImplicitListClassification
CollectionClassification getImplicitListClassification()Collection semantics to be applied toListattributes with no explicit configuration- See Also:
-