Class HerodotusAuthorizationUuidGeneratorType

java.lang.Object
cn.herodotus.engine.data.core.identifier.AbstractUuidGenerator
cn.herodotus.engine.oauth2.data.jpa.generator.HerodotusAuthorizationUuidGeneratorType
All Implemented Interfaces:
Serializable, org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.generator.BeforeExecutionGenerator, org.hibernate.generator.Generator, org.hibernate.id.Configurable, org.hibernate.id.factory.spi.StandardGenerator, org.hibernate.id.IdentifierGenerator

public class HerodotusAuthorizationUuidGeneratorType extends cn.herodotus.engine.data.core.identifier.AbstractUuidGenerator

Description: OAuth2Authorization Id 生成器

指定ID生成器,解决实体ID无法手动设置问题。

Author:
: gengwei.zheng
See Also:
Date:
: 2022/11/7 15:39
  • Field Summary

    Fields inherited from interface org.hibernate.id.IdentifierGenerator

    CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    HerodotusAuthorizationUuidGeneratorType(HerodotusAuthorizationUuidGenerator config, Member idMember, org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext creationContext)
     
  • Method Summary

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

    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.generator.Generator

    allowAssignedIdentifiers, generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimes

    Methods inherited from interface org.hibernate.id.IdentifierGenerator

    configure, generate, getEventTypes, initialize, registerExportables, supportsJdbcBatchInserts
  • Constructor Details

    • HerodotusAuthorizationUuidGeneratorType

      public HerodotusAuthorizationUuidGeneratorType(HerodotusAuthorizationUuidGenerator config, Member idMember, org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext creationContext)
  • Method Details

    • generate

      public Object generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object) throws org.hibernate.HibernateException
      Specified by:
      generate in interface org.hibernate.id.IdentifierGenerator
      Overrides:
      generate in class cn.herodotus.engine.data.core.identifier.AbstractUuidGenerator
      Throws:
      org.hibernate.HibernateException