HHH-17351 Add missing basic type registration after changing preferred jdbc type

This commit is contained in:
Christian Beikov 2023-10-24 10:26:59 +02:00
parent eb5f9da285
commit 9403c4932a

View File

@ -645,7 +645,10 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
jdbcTypeRegistry,
preferredSqlTypeCodeForUuid,
UUID.class,
"uuid"
StandardBasicTypes.UUID.getName(),
"org.hibernate.type.PostgresUUIDType",
"uuid",
"pg-uuid"
);
}
else {
@ -672,7 +675,8 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
jdbcTypeRegistry,
preferredSqlTypeCodeForDuration,
Duration.class,
StandardBasicTypes.DURATION.getName()
StandardBasicTypes.DURATION.getName(),
"org.hibernate.type.DurationType"
);
}
else {
@ -722,8 +726,9 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
jdbcTypeRegistry,
preferredSqlTypeCodeForInstant,
Instant.class,
"instant",
"org.hibernate.type.InstantType"
StandardBasicTypes.INSTANT.getName(),
"org.hibernate.type.InstantType",
"instant"
);
}
}