public interface MappingDefaults
Defines a (contextual) set of values to use as defaults in the absence of related mapping information. The context here is conceptually a stack. The "global" level is configuration settings.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CASCADE_NAME |
static String |
DEFAULT_DISCRIMINATOR_COLUMN_NAME |
static String |
DEFAULT_IDENTIFIER_COLUMN_NAME |
static String |
DEFAULT_PROPERTY_ACCESS_NAME |
static String |
DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME |
Modifier and Type | Method and Description |
---|---|
boolean |
areCollectionsImplicitlyLazy()
Identifies whether plural attributes are lazy by default if not specified in the mapping.
|
boolean |
areEntitiesImplicitlyLazy()
Identifies whether singular associations (many-to-one, one-to-one) are lazy
by default if not specified in the mapping.
|
AccessType |
getImplicitCacheAccessType()
The cache access type to use if none is specified
|
String |
getImplicitCascadeStyleName()
Identifies the cascade style to apply to associations if none specified in the mapping.
|
String |
getImplicitCatalogName()
Identifies the database catalog name to use if none specified in the mapping.
|
String |
getImplicitDiscriminatorColumnName()
Identifies the column name to use for the discriminator column if none specified
in the mapping.
|
String |
getImplicitIdColumnName()
Identifies the column name to use for the identifier column if none specified in
the mapping.
|
String |
getImplicitPackageName()
Identifies the package name to use if none specified in the mapping.
|
String |
getImplicitPropertyAccessorName()
Identifies the default
PropertyAccessStrategy name to use if none specified in the
mapping. |
String |
getImplicitSchemaName()
Identifies the database schema name to use if none specified in the mapping.
|
String |
getImplicitTenantIdColumnName()
Identifies the column name to use for the tenant identifier column if none is
specified in the mapping.
|
boolean |
isAutoImportEnabled()
Is auto-importing of entity (short) names enabled?
|
boolean |
shouldImplicitlyQuoteIdentifiers()
Should all database identifiers encountered in this context be implicitly quoted?
|
static final String DEFAULT_IDENTIFIER_COLUMN_NAME
static final String DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME
static final String DEFAULT_DISCRIMINATOR_COLUMN_NAME
static final String DEFAULT_CASCADE_NAME
static final String DEFAULT_PROPERTY_ACCESS_NAME
String getImplicitSchemaName()
Identifies the database schema name to use if none specified in the mapping.
null
String getImplicitCatalogName()
Identifies the database catalog name to use if none specified in the mapping.
null
boolean shouldImplicitlyQuoteIdentifiers()
Should all database identifiers encountered in this context be implicitly quoted?
true
indicates that all identifier encountered within this context should be
quoted. false
indicates indicates that identifiers within this context are
onl;y quoted if explicitly quoted.
true
/false
String getImplicitIdColumnName()
Identifies the column name to use for the identifier column if none specified in the mapping.
String getImplicitTenantIdColumnName()
Identifies the column name to use for the tenant identifier column if none is specified in the mapping.
String getImplicitDiscriminatorColumnName()
Identifies the column name to use for the discriminator column if none specified in the mapping.
String getImplicitPackageName()
Identifies the package name to use if none specified in the mapping. Really only
pertinent for hbm.xml
mappings.
boolean isAutoImportEnabled()
Is auto-importing of entity (short) names enabled?
true
if auto-importing is enabled; false
otherwise.String getImplicitCascadeStyleName()
Identifies the cascade style to apply to associations if none specified in the mapping.
String getImplicitPropertyAccessorName()
Identifies the default PropertyAccessStrategy
name to use if none specified in the
mapping.
PropertyAccessStrategy
boolean areEntitiesImplicitlyLazy()
Identifies whether singular associations (many-to-one, one-to-one) are lazy by default if not specified in the mapping.
boolean areCollectionsImplicitlyLazy()
Identifies whether plural attributes are lazy by default if not specified in the mapping.
AccessType getImplicitCacheAccessType()
The cache access type to use if none is specified
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.