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 3a28e8bf3b
commit 588408c5f8
1 changed files with 9 additions and 4 deletions

View File

@ -646,7 +646,10 @@ public class MetadataBuildingProcess {
jdbcTypeRegistry,
preferredSqlTypeCodeForUuid,
UUID.class,
"uuid"
StandardBasicTypes.UUID.getName(),
"org.hibernate.type.PostgresUUIDType",
"uuid",
"pg-uuid"
);
}
else {
@ -673,7 +676,8 @@ public class MetadataBuildingProcess {
jdbcTypeRegistry,
preferredSqlTypeCodeForDuration,
Duration.class,
StandardBasicTypes.DURATION.getName()
StandardBasicTypes.DURATION.getName(),
"org.hibernate.type.DurationType"
);
}
else {
@ -730,8 +734,9 @@ public class MetadataBuildingProcess {
jdbcTypeRegistry,
preferredSqlTypeCodeForInstant,
Instant.class,
"instant",
"org.hibernate.type.InstantType"
StandardBasicTypes.INSTANT.getName(),
"org.hibernate.type.InstantType",
"instant"
);
}
}