Class CUIDIdentifierGenerator

java.lang.Object
dev.voidframework.persistence.hibernate.cuid.CUIDIdentifierGenerator
All Implemented Interfaces:
org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator

public final class CUIDIdentifierGenerator extends Object implements org.hibernate.id.IdentifierGenerator
CUID-based IdentifierGenerator.
See Also:
  • Field Summary

    Fields inherited from interface org.hibernate.id.IdentifierGenerator

    CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    CUIDIdentifierGenerator(CuidGenerator config, Member annotatedMember, org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext context)
    Build a new instance
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor, Object o)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.id.IdentifierGenerator

    configure, initialize, registerExportables, supportsJdbcBatchInserts
  • Constructor Details

    • CUIDIdentifierGenerator

      public CUIDIdentifierGenerator(CuidGenerator config, Member annotatedMember, org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext context)
      Build a new instance
      Parameters:
      config - The generator configuration
      annotatedMember - The member annotated with @CUIDGeneratedValue
      context - The context
  • Method Details

    • generate

      public Object generate(org.hibernate.engine.spi.SharedSessionContractImplementor sharedSessionContractImplementor, Object o) throws org.hibernate.HibernateException
      Specified by:
      generate in interface org.hibernate.id.IdentifierGenerator
      Throws:
      org.hibernate.HibernateException