Package africa.absa.inception.jpa
Class AssignedIdentityGenerator
- java.lang.Object
-
- org.hibernate.id.AbstractPostInsertGenerator
-
- org.hibernate.id.IdentityGenerator
-
- africa.absa.inception.jpa.AssignedIdentityGenerator
-
- All Implemented Interfaces:
org.hibernate.id.BulkInsertionCapableIdentifierGenerator,org.hibernate.id.IdentifierGenerator,org.hibernate.id.PostInsertIdentifierGenerator
public class AssignedIdentityGenerator extends org.hibernate.id.IdentityGeneratorThe AssignedIdentityGenerator implements a Hibernate generator that allows a value to be specified in place of an automatically generated value for an identity column in the database.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description AssignedIdentityGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Serializablegenerate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)Generate a new identifier.-
Methods inherited from class org.hibernate.id.IdentityGenerator
getInsertGeneratedIdentifierDelegate
-
Methods inherited from class org.hibernate.id.AbstractPostInsertGenerator
determineBulkInsertionIdentifierGenerationSelectFragment, supportsBulkInsertionIdentifierGeneration
-
-
-
-
Method Detail
-
generate
public Serializable generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)
Generate a new identifier.- Specified by:
generatein interfaceorg.hibernate.id.IdentifierGenerator- Overrides:
generatein classorg.hibernate.id.AbstractPostInsertGenerator- Parameters:
session- the session from which the request originatesobject- the entity or collection for which the ID is being generated- Returns:
- a new identifier
-
-