Class QuarkusSimplifiedIdentifierGeneratorFactory
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.service.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 Summary
Constructors Constructor Description QuarkusSimplifiedIdentifierGeneratorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.id.IdentifierGenerator
createIdentifierGenerator(String strategy, org.hibernate.type.Type type, Properties config)
org.hibernate.dialect.Dialect
getDialect()
Class
getIdentifierGeneratorClass(String strategy)
void
injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
void
register(String strategy, Class generatorClass)
void
setDialect(org.hibernate.dialect.Dialect dialect)
-
-
-
Method Detail
-
register
public void register(String strategy, Class generatorClass)
- Specified by:
register
in interfaceorg.hibernate.id.factory.spi.MutableIdentifierGeneratorFactory
-
getDialect
public org.hibernate.dialect.Dialect getDialect()
- Specified by:
getDialect
in interfaceorg.hibernate.id.factory.IdentifierGeneratorFactory
-
setDialect
public void setDialect(org.hibernate.dialect.Dialect dialect)
- Specified by:
setDialect
in interfaceorg.hibernate.id.factory.IdentifierGeneratorFactory
-
createIdentifierGenerator
public org.hibernate.id.IdentifierGenerator createIdentifierGenerator(String strategy, org.hibernate.type.Type type, Properties config)
- Specified by:
createIdentifierGenerator
in interfaceorg.hibernate.id.factory.IdentifierGeneratorFactory
-
getIdentifierGeneratorClass
public Class getIdentifierGeneratorClass(String strategy)
- Specified by:
getIdentifierGeneratorClass
in interfaceorg.hibernate.id.factory.IdentifierGeneratorFactory
-
injectServices
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
- Specified by:
injectServices
in interfaceorg.hibernate.service.spi.ServiceRegistryAwareService
-
-