public class GUIDGenerator extends java.lang.Object implements IdentifierGenerator
ENTITY_NAME, JPA_ENTITY_NAME| Constructor and Description |
|---|
GUIDGenerator() |
| Modifier and Type | Method and Description |
|---|---|
java.io.Serializable |
generate(SharedSessionContractImplementor session,
java.lang.Object obj)
Generate a new identifier.
|
public java.io.Serializable generate(SharedSessionContractImplementor 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 identifierCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.