Class StandardNamingStrategy

java.lang.Object
org.hibernate.id.enhanced.StandardNamingStrategy
All Implemented Interfaces:
ImplicitDatabaseObjectNamingStrategy

public class StandardNamingStrategy extends Object implements ImplicitDatabaseObjectNamingStrategy
The 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 is composed of the "base" name with the specified suffix. The base name depends on the usage of the generator, but is usually the root entity name if applied to an entity identifier or the table we are generating values for, or
  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. Otherwise, throw a MappingException.

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".