mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-03 08:19:15 +00:00
HHH-18411 - Add ability to specify a custom UuidGenerator.ValueGenerator
This commit is contained in:
parent
5ff2768510
commit
82df529ebb
@ -8,8 +8,7 @@
|
||||
|
||||
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 @@
|
||||
/**
|
||||
* @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 IdGeneratorCreationContext(MetadataImplementor domainModel, RootClass ent
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IdentifierGeneratorFactory getIdentifierGeneratorFactory() {
|
||||
return domainModel.getMetadataBuildingOptions().getIdentifierGeneratorFactory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public RootClass getRootClass() {
|
||||
return entityMapping;
|
||||
|
Loading…
x
Reference in New Issue
Block a user