public class Assigned extends java.lang.Object implements IdentifierGenerator, Configurable
ENTITY_NAME, JPA_ENTITY_NAME| Constructor and Description |
|---|
Assigned() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Type type,
java.util.Properties params,
ServiceRegistry serviceRegistry)
Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
java.io.Serializable |
generate(SessionImplementor session,
java.lang.Object obj)
Generate a new identifier.
|
public java.io.Serializable generate(SessionImplementor session, java.lang.Object obj) throws HibernateException
IdentifierGeneratorgenerate in interface IdentifierGeneratorsession - The session from which the request originatesobj - the entity or collection (idbag) for which the id is being generatedHibernateException - Indicates trouble generating the identifierpublic void configure(Type type, java.util.Properties params, ServiceRegistry serviceRegistry) throws MappingException
Configurableconfigure in interface Configurabletype - The id property type descriptorparams - param values, keyed by parameter nameserviceRegistry - Access to service that may be needed.MappingExceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.