HHH-17635 - register custom user types when contributed through a service provider

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2024-01-11 23:36:54 +01:00 committed by Marco Belladelli
parent 94c36922ac
commit 9c0bc02163
1 changed files with 5 additions and 0 deletions

View File

@ -609,6 +609,11 @@ public class MetadataBuildingProcess {
public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?>> converterClass) {
metadataCollector.getConverterRegistry().addAttributeConverter( converterClass );
}
@Override
public void contributeType(CompositeUserType<?> type) {
options.getCompositeUserTypes().add( type );
}
};
if ( options.getWrapperArrayHandling() == WrapperArrayHandling.LEGACY ) {