Interface MappingDefaults


  • 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.
    Since:
    5.0
    • Field Detail

      • DEFAULT_IDENTIFIER_COLUMN_NAME

        static final java.lang.String DEFAULT_IDENTIFIER_COLUMN_NAME
        See Also:
        Constant Field Values
      • DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME

        static final java.lang.String DEFAULT_TENANT_IDENTIFIER_COLUMN_NAME
        See Also:
        Constant Field Values
      • DEFAULT_DISCRIMINATOR_COLUMN_NAME

        static final java.lang.String DEFAULT_DISCRIMINATOR_COLUMN_NAME
        See Also:
        Constant Field Values
      • DEFAULT_CASCADE_NAME

        static final java.lang.String DEFAULT_CASCADE_NAME
        See Also:
        Constant Field Values
      • DEFAULT_PROPERTY_ACCESS_NAME

        static final java.lang.String DEFAULT_PROPERTY_ACCESS_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • getImplicitSchemaName

        java.lang.String getImplicitSchemaName()
        Identifies the database schema name to use if none specified in the mapping.
        Returns:
        The implicit schema name; may be null
      • getImplicitCatalogName

        java.lang.String getImplicitCatalogName()
        Identifies the database catalog name to use if none specified in the mapping.
        Returns:
        The implicit catalog name; may be null
      • shouldImplicitlyQuoteIdentifiers

        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.
        Returns:
        true/false
      • getImplicitIdColumnName

        java.lang.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

        java.lang.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

        java.lang.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

        java.lang.String getImplicitPackageName()
        Identifies the package name to use if none specified in the mapping. Really only pertinent for hbm.xml mappings.
        Returns:
        The implicit package name.
      • isAutoImportEnabled

        boolean isAutoImportEnabled()
        Is auto-importing of entity (short) names enabled?
        Returns:
        true if auto-importing is enabled; false otherwise.
      • getImplicitCascadeStyleName

        java.lang.String getImplicitCascadeStyleName()
        Identifies the cascade style to apply to associations if none specified in the mapping.
        Returns:
        The implicit cascade style
      • getImplicitPropertyAccessorName

        java.lang.String getImplicitPropertyAccessorName()
        Identifies the default PropertyAccessStrategy name to use if none specified in the mapping.
        Returns:
        The implicit property accessor name
        See Also:
        PropertyAccessStrategy
      • 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
        Returns:
        The implicit cache access type.