HHH-18411 - Add ability to specify a custom UuidGenerator.ValueGenerator

This commit is contained in:
Andrea Boriero 2024-07-25 11:59:03 +02:00 committed by Steve Ebersole
parent 5ff2768510
commit 82df529ebb
1 changed files with 2 additions and 8 deletions

View File

@ -8,8 +8,7 @@ package org.hibernate.testing.util.uuid;
import org.hibernate.boot.model.relational.Database;
import org.hibernate.boot.spi.MetadataImplementor;
import org.hibernate.id.factory.IdentifierGeneratorFactory;
import org.hibernate.id.factory.spi.CustomIdGeneratorCreationContext;
import org.hibernate.generator.GeneratorCreationContext;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.mapping.Property;
import org.hibernate.mapping.RootClass;
@ -18,7 +17,7 @@ import org.hibernate.service.ServiceRegistry;
/**
* @author Steve Ebersole
*/
public class IdGeneratorCreationContext implements CustomIdGeneratorCreationContext {
public class IdGeneratorCreationContext implements GeneratorCreationContext {
private final ServiceRegistry serviceRegistry;
private final MetadataImplementor domainModel;
private final RootClass entityMapping;
@ -42,11 +41,6 @@ public class IdGeneratorCreationContext implements CustomIdGeneratorCreationCont
);
}
@Override
public IdentifierGeneratorFactory getIdentifierGeneratorFactory() {
return domainModel.getMetadataBuildingOptions().getIdentifierGeneratorFactory();
}
@Override
public RootClass getRootClass() {
return entityMapping;