Class UlidIdentifierGenerator

java.lang.Object
com.broadleafcommerce.data.tracking.jpa.hibernate.UlidIdentifierGenerator
All Implemented Interfaces:
org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator

public class UlidIdentifierGenerator extends Object implements org.hibernate.id.IdentifierGenerator
Hibernate specific id generator that leverages ULID as the source of id.
Author:
Jeff Fischer
  • Field Summary

    Fields inherited from interface org.hibernate.id.IdentifierGenerator

    ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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

    • UlidIdentifierGenerator

      public UlidIdentifierGenerator()
  • Method Details

    • generate

      public Serializable 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