Class StandardNamingStrategy

  • All Implemented Interfaces:
    ImplicitDatabaseObjectNamingStrategy

    public class StandardNamingStrategy
    extends Object
    implements ImplicitDatabaseObjectNamingStrategy
    Hibernate's standard implicit naming strategy for identifier sequences and tables. For sequences (including forced-table sequences):
    1. If "sequence_per_entity_suffix" is specified, a name composed of the "base" name with the specified suffix. The base name depends on the usage of the generator, but is generally the root entity-name if applied to an entity identifier or the table we are generating values for
    2. If annotations are used and GeneratedValue.generator() is specified, its value is used as the sequence name
    3. If the "base" name is known, use that
    4. Throw an exception
    For tables:
    1. If annotations are used and GeneratedValue.generator() is specified, its value is used as the table name
    2. Fall back is to use "hibernate_sequences"