From 9c0bc02163cbc27b5c3a0c8415c06c70cf7eadbd Mon Sep 17 00:00:00 2001 From: Jan Schatteman Date: Thu, 11 Jan 2024 23:36:54 +0100 Subject: [PATCH] HHH-17635 - register custom user types when contributed through a service provider Signed-off-by: Jan Schatteman --- .../boot/model/process/spi/MetadataBuildingProcess.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java b/hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java index 8ffe9febb2..a5353f12c0 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java @@ -609,6 +609,11 @@ public class MetadataBuildingProcess { public void contributeAttributeConverter(Class> converterClass) { metadataCollector.getConverterRegistry().addAttributeConverter( converterClass ); } + + @Override + public void contributeType(CompositeUserType type) { + options.getCompositeUserTypes().add( type ); + } }; if ( options.getWrapperArrayHandling() == WrapperArrayHandling.LEGACY ) {