public interface IdentifierGenerator
PersistentIdentifierGenerator
,
Configurable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENTITY_NAME
The configuration parameter holding the entity name
|
static java.lang.String |
JPA_ENTITY_NAME
The configuration parameter holding the JPA entity name
|
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
generate(SharedSessionContractImplementor session,
java.lang.Object object)
Generate a new identifier.
|
static final java.lang.String ENTITY_NAME
static final java.lang.String JPA_ENTITY_NAME
java.io.Serializable generate(SharedSessionContractImplementor session, java.lang.Object object) throws HibernateException
session
- The session from which the request originatesobject
- the entity or collection (idbag) for which the id is being generatedHibernateException
- Indicates trouble generating the identifierCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.