Class QuarkusSimplifiedIdentifierGeneratorFactory

  • All Implemented Interfaces:
    Serializable, org.hibernate.id.factory.IdentifierGeneratorFactory, org.hibernate.id.factory.spi.MutableIdentifierGeneratorFactory, org.hibernate.service.Service, org.hibernate.service.spi.ServiceRegistryAwareService

    final class QuarkusSimplifiedIdentifierGeneratorFactory
    extends Object
    implements org.hibernate.id.factory.spi.MutableIdentifierGeneratorFactory, org.hibernate.service.spi.ServiceRegistryAwareService
    Quarkus custom implementation of Hibernate ORM's org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory differences with the original: 1# it does not attempt to use a BeanContainer to create instances; Hibernate ORM introduced this feature in HHH-14688 2# No need to handle AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS as Quarkus users shouldn't disable it (on by default)
    • Constructor Detail

      • QuarkusSimplifiedIdentifierGeneratorFactory

        public QuarkusSimplifiedIdentifierGeneratorFactory()
    • Method Detail

      • register

        public void register​(String strategy,
                             Class generatorClass)
        Specified by:
        register in interface org.hibernate.id.factory.spi.MutableIdentifierGeneratorFactory
      • getDialect

        public org.hibernate.dialect.Dialect getDialect()
        Specified by:
        getDialect in interface org.hibernate.id.factory.IdentifierGeneratorFactory
      • setDialect

        public void setDialect​(org.hibernate.dialect.Dialect dialect)
        Specified by:
        setDialect in interface org.hibernate.id.factory.IdentifierGeneratorFactory
      • createIdentifierGenerator

        public org.hibernate.id.IdentifierGenerator createIdentifierGenerator​(String strategy,
                                                                              org.hibernate.type.Type type,
                                                                              Properties config)
        Specified by:
        createIdentifierGenerator in interface org.hibernate.id.factory.IdentifierGeneratorFactory
      • getIdentifierGeneratorClass

        public Class getIdentifierGeneratorClass​(String strategy)
        Specified by:
        getIdentifierGeneratorClass in interface org.hibernate.id.factory.IdentifierGeneratorFactory
      • injectServices

        public void injectServices​(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
        Specified by:
        injectServices in interface org.hibernate.service.spi.ServiceRegistryAwareService