Class LegacyNamingStrategy

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

public class LegacyNamingStrategy extends Object implements ImplicitDatabaseObjectNamingStrategy
Naming strategy which implements the behavior of older versions of Hibernate, for the most part.

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. Fall back is to use "hibernate_sequence".
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".