Interface ImplicitNamingStrategy

    • Method Detail

      • determinePrimaryTableName

        Identifier determinePrimaryTableName​(ImplicitEntityNameSource source)
        Determine the implicit name of an entity's primary table.
        Parameters:
        source - The source information
        Returns:
        The implicit table name.
      • determineJoinTableName

        Identifier determineJoinTableName​(ImplicitJoinTableNameSource source)
        Determine the name of an association join table given the source naming information, when a name is not explicitly given. This method is called for any sort of association with a join table, no matter what the logical cardinality.
        Parameters:
        source - The source information
        Returns:
        The implicit table name.
      • determineIdentifierColumnName

        Identifier determineIdentifierColumnName​(ImplicitIdentifierColumnNameSource source)
        Determine the name if the identifier column belonging to the given entity when it is not explicitly specified using Column.name().
        Parameters:
        source - The source information
        Returns:
        The determined identifier column name
      • determineBasicColumnName

        Identifier determineBasicColumnName​(ImplicitBasicColumnNameSource source)
        Determine the column name when it is not explicitly specified using Column.name().
        Parameters:
        source - The source information
        Returns:
        The implicit column name.
      • determineJoinColumnName

        Identifier determineJoinColumnName​(ImplicitJoinColumnNameSource source)
        Determine the join column name when it is not explicitly specified using JoinColumn.name().

        In hbm.xml terms, this would be a <key/> defined for a collection or the column associated with a many-to-one.

        Parameters:
        source - The source information
        Returns:
        The determined join column name
      • determinePrimaryKeyJoinColumnName

        Identifier determinePrimaryKeyJoinColumnName​(ImplicitPrimaryKeyJoinColumnNameSource source)
        Determine the primary key join column name when it is not explicitly specified using PrimaryKeyJoinColumn.name().

        In hbm.xml terms, this would be a <key/> defined for a <join/> or a <joined-subclass/>.

        Parameters:
        source - The source information
        Returns:
        The determined column name
      • determineAnyDiscriminatorColumnName

        Identifier determineAnyDiscriminatorColumnName​(ImplicitAnyDiscriminatorColumnNameSource source)
        Determine the column name related to the discriminator portion of an Any mapping when no explicit column name is given using Column.name().
        Parameters:
        source - The source information
        Returns:
        The determined column name
      • determineAnyKeyColumnName

        Identifier determineAnyKeyColumnName​(ImplicitAnyKeyColumnNameSource source)
        Determine the join column name related to the key/id portion of an Any mapping when no explicit join column name is given using JoinColumn.name().
        Parameters:
        source - The source information
        Returns:
        The determined identifier column name
      • determineListIndexColumnName

        Identifier determineListIndexColumnName​(ImplicitIndexColumnNameSource source)
        Determine the list index column name when it is not explicitly specified using OrderColumn.name().
        Parameters:
        source - The source information
        Returns:
        The implicit column name.
      • determineForeignKeyName

        Identifier determineForeignKeyName​(ImplicitForeignKeyNameSource source)
        Determine the foreign key name when it is not explicitly specified using ForeignKey.name().
        Parameters:
        source - The source information
        Returns:
        The determined foreign key name
      • determineIndexName

        Identifier determineIndexName​(ImplicitIndexNameSource source)
        Determine the index name when it is not explicitly specified using Index.name().
        Parameters:
        source - The source information
        Returns:
        The determined foreign key name