Class SysAttributeIdGeneratorType

java.lang.Object
cn.herodotus.engine.data.hibernate.generator.AbstractIdGeneratorType
cn.herodotus.engine.logic.upms.domain.generator.SysAttributeIdGeneratorType
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.IdentifierGenerator

public class SysAttributeIdGeneratorType extends cn.herodotus.engine.data.hibernate.generator.AbstractIdGeneratorType

Description: 自定义UUID生成器

使得保存实体类时可以在保留主键生成策略的情况下自定义表的主键

Author:
: gengwei.zheng
See Also:
Date:
: 2021/8/4 3:20
  • Field Summary

    Fields inherited from interface org.hibernate.id.IdentifierGenerator

    CONTRIBUTOR_NAME, ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    SysAttributeIdGeneratorType(SysAttributeIdGenerator config, Member member, org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext context)
     
  • Method Summary

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

    Methods inherited from class cn.herodotus.engine.data.hibernate.generator.AbstractIdGeneratorType

    allowAssignedIdentifiers

    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

    generatedOnExecution, generatesOnInsert, generatesOnUpdate, generatesSometimes

    Methods inherited from interface org.hibernate.id.IdentifierGenerator

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

    • SysAttributeIdGeneratorType

      public SysAttributeIdGeneratorType(SysAttributeIdGenerator config, Member member, org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext context)
  • Method Details

    • generate

      public Object generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)
      Specified by:
      generate in interface org.hibernate.id.IdentifierGenerator
      Overrides:
      generate in class cn.herodotus.engine.data.hibernate.generator.AbstractIdGeneratorType