Package org.hibernate.boot.spi
Interface EffectiveMappingDefaults
- All Known Implementing Classes:
OverriddenMappingDefaults
,RootMappingDefaults
public interface EffectiveMappingDefaults
Defaults which are in effect for each mapping.
A combination of global settings and XML-specific settings
-
Field Summary
Fields -
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.default CollectionClassification
Deprecated.No longer supportedThe 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
-
Field Details
-
DEFAULT_IDENTIFIER_COLUMN_NAME
- See Also:
-
DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME
- See Also:
-
DEFAULT_DISCRIMINATOR_COLUMN_NAME
- See Also:
-
-
Method Details
-
getDefaultCatalogName
String getDefaultCatalogName()The default database catalog name to use -
getDefaultSchemaName
String getDefaultSchemaName()The default database schema name to use -
isDefaultQuoteIdentifiers
boolean isDefaultQuoteIdentifiers()Whether database identifiers be quoted by default -
getDefaultIdColumnName
String getDefaultIdColumnName()The default column name to use for the identifier column if none specified in the mapping. Falls back to "id". -
getDefaultDiscriminatorColumnName
String getDefaultDiscriminatorColumnName()The default column name to use for the discriminator column if none specified in the mapping. Falls back to "class". -
getDefaultTenantIdColumnName
String getDefaultTenantIdColumnName()The default column name to use for the tenant identifier column if none is specified in the mapping. Falls back to "tenant_id". -
getDefaultPackageName
String getDefaultPackageName()The default package name to use if none specified in XML mappings. Useful when all (or most) domain classes are in a single package. -
isDefaultAutoImport
boolean isDefaultAutoImport()Whether auto-importing of entity names (for queries) is enabled. -
getDefaultCascadeTypes
EnumSet<CascadeType> getDefaultCascadeTypes()The default cascade styles to apply to associations. -
getDefaultPropertyAccessType
AccessType getDefaultPropertyAccessType()The default AccessType to use if not specified in the mapping.- See Also:
-
getDefaultAccessStrategyName
String getDefaultAccessStrategyName()The defaultPropertyAccessStrategy
name to use if none specified in the mapping. -
isDefaultEntityLaziness
boolean isDefaultEntityLaziness()Whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping. -
isDefaultCollectionLaziness
boolean isDefaultCollectionLaziness()Whether plural attributes are lazy by default if not specified in the mapping.- See Also:
-
getDefaultCacheAccessType
AccessType getDefaultCacheAccessType()The default cache access strategy to use if none is specified -
getDefaultListClassification
Deprecated.No longer supported
-