From 588408c5f876edf693e7678636a6583996e509f2 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Tue, 24 Oct 2023 10:26:59 +0200 Subject: [PATCH] HHH-17351 Add missing basic type registration after changing preferred jdbc type --- .../model/process/spi/MetadataBuildingProcess.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 9d9ea6232f..8ffe9febb2 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 @@ -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" ); } }