Skip to content

Commit d6f09d6

Browse files
jrenaatmbladel
authored andcommitted
HHH-17635 - register custom user types when contributed through a service provider
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
1 parent 733b555 commit d6f09d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java

+5
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ public TypeConfiguration getTypeConfiguration() {
609609
public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?>> converterClass) {
610610
metadataCollector.getConverterRegistry().addAttributeConverter( converterClass );
611611
}
612+
613+
@Override
614+
public void contributeType(CompositeUserType<?> type) {
615+
options.getCompositeUserTypes().add( type );
616+
}
612617
};
613618

614619
if ( options.getWrapperArrayHandling() == WrapperArrayHandling.LEGACY ) {

0 commit comments

Comments
 (0)