Top Description Fields Methods
org.hibernate.id

public Interface PersistentIdentifierGenerator

extends IdentifierGenerator
Known Direct Implementers
org.hibernate.id.SequenceGenerator, org.hibernate.id.enhanced.SequenceStyleGenerator, org.hibernate.id.enhanced.TableGenerator, org.hibernate.id.MultipleHiLoPerTableGenerator
Imports
java.util.Properties, org.hibernate.HibernateException, org.hibernate.dialect.Dialect, org.hibernate.service.ServiceRegistry, org.hibernate.type.Type

Deprecated

as a consequence of IdentifierGenerator being deprecated. See corresponding docs for further information.

An IdentifierGenerator that requires creation of database objects.

All PersistentIdentifierGenerators have access to a special mapping parameter in their configure(Type, Properties, ServiceRegistry) method: schema
Authors
Gavin King, Steve Ebersole
See Also
IdentifierGenerator

Field Summary

Modifier and TypeField and Description
public static final String
CATALOG

The configuration parameter holding the catalog name

public static final String
IDENTIFIER_NORMALIZER

The key under which to find the org.hibernate.boot.model.naming.ObjectNameNormalizer in the config param map.

public static final String
PK

The configuration parameter holding the primary key column name of the generated id

public static final String
SCHEMA

The configuration parameter holding the schema name

public static final String
TABLE

The configuration parameter holding the table name for the generated id

public static final String
TABLES

The configuration parameter holding the table names for all tables for which the id must be unique

Inherited from org.hibernate.id.IdentifierGenerator:
ENTITY_NAMEGENERATOR_NAMEJPA_ENTITY_NAME

Method Summary

Modifier and TypeMethod and Description
public default Object

Returns:

Object an identifying key for this generator
generatorKey
()

Deprecated No longer necessary.
Return a key unique to the underlying database objects.
Inherited from org.hibernate.id.IdentifierGenerator:
configuregenerateinitializeregisterExportablessupportsJdbcBatchInserts

Field Detail

CATALOGback to summary
public static final String CATALOG

The configuration parameter holding the catalog name

IDENTIFIER_NORMALIZERback to summary
public static final String IDENTIFIER_NORMALIZER

The key under which to find the org.hibernate.boot.model.naming.ObjectNameNormalizer in the config param map.

PKback to summary
public static final String PK

The configuration parameter holding the primary key column name of the generated id

SCHEMAback to summary
public static final String SCHEMA

The configuration parameter holding the schema name

TABLEback to summary
public static final String TABLE

The configuration parameter holding the table name for the generated id

TABLESback to summary
public static final String TABLES

The configuration parameter holding the table names for all tables for which the id must be unique

Method Detail

generatorKeyback to summary
public default Object generatorKey()

Deprecated

No longer necessary.

Return a key unique to the underlying database objects. Prevents us from trying to create/remove them multiple times.

Returns:Object

Object an identifying key for this generator

Annotations
@Deprecated