Package org.hibernate.id
Class GUIDGenerator
- java.lang.Object
-
- org.hibernate.id.GUIDGenerator
-
- All Implemented Interfaces:
Serializable
,ExportableProducer
,BeforeExecutionGenerator
,Generator
,Configurable
,StandardGenerator
,IdentifierGenerator
@Deprecated(since="6.0") public class GUIDGenerator extends Object implements IdentifierGenerator, StandardGenerator
Deprecated.useUuidGenerator
The legacy id generator namedguid
.Generates
string
values using the SQL ServerNEWID()
function.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.hibernate.id.IdentifierGenerator
CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
Constructor Summary
Constructors Constructor Description GUIDGenerator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
generate(SharedSessionContractImplementor session, Object obj)
Deprecated.Generate a new identifier.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecution
-
Methods inherited from interface org.hibernate.id.Configurable
create, initialize
-
Methods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimes
-
Methods inherited from interface org.hibernate.id.IdentifierGenerator
configure, generate, getEventTypes, registerExportables, supportsJdbcBatchInserts
-
-
-
-
Method Detail
-
generate
public Object generate(SharedSessionContractImplementor session, Object obj) throws HibernateException
Deprecated.Description copied from interface:IdentifierGenerator
Generate a new identifier.- Specified by:
generate
in interfaceIdentifierGenerator
- Parameters:
session
- The session from which the request originatesobj
- the entity or collection (idbag) for which the id is being generated- Returns:
- a new identifier
- Throws:
HibernateException
- Indicates trouble generating the identifier
-
-