public interface IdentifierGenerator
PersistentIdentifierGenerator
,
Configurable
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_NAME
The configuration parameter holding the entity name
|
static String |
JPA_ENTITY_NAME
The configuration parameter holding the JPA entity name
|
Modifier and Type | Method and Description |
---|---|
Serializable |
generate(SessionImplementor session,
Object object)
Generate a new identifier.
|
static final String ENTITY_NAME
static final String JPA_ENTITY_NAME
Serializable generate(SessionImplementor session, 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 © 2017 JBoss by Red Hat. All rights reserved.