Class ULIDGenerationStrategy
java.lang.Object
com.broadleafcommerce.auth.repository.provider.hibernate.generation.ULIDGenerationStrategy
- All Implemented Interfaces:
org.hibernate.boot.model.relational.ExportableProducer,org.hibernate.id.Configurable,org.hibernate.id.IdentifierGenerator
public class ULIDGenerationStrategy
extends Object
implements org.hibernate.id.IdentifierGenerator, org.hibernate.id.Configurable
A generation strategy that generates a ULID for a primary key. This assumes that the property the
ULID is generated for is a String. For more information about the advantages of ULIDs over UUIDs
for primary keys see the docs.
- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.hibernate.type.Type type, Properties params, org.hibernate.service.ServiceRegistry serviceRegistry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.id.IdentifierGenerator
initialize, registerExportables, supportsJdbcBatchInserts
-
Constructor Details
-
ULIDGenerationStrategy
public ULIDGenerationStrategy()
-
-
Method Details
-
configure
public void configure(org.hibernate.type.Type type, Properties params, org.hibernate.service.ServiceRegistry serviceRegistry) throws org.hibernate.MappingException - Specified by:
configurein interfaceorg.hibernate.id.Configurable- Specified by:
configurein interfaceorg.hibernate.id.IdentifierGenerator- Throws:
org.hibernate.MappingException
-