Skip to content

Commit 9403c49

Browse files
committed
HHH-17351 Add missing basic type registration after changing preferred jdbc type
1 parent eb5f9da commit 9403c49

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,10 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
645645
jdbcTypeRegistry,
646646
preferredSqlTypeCodeForUuid,
647647
UUID.class,
648-
"uuid"
648+
StandardBasicTypes.UUID.getName(),
649+
"org.hibernate.type.PostgresUUIDType",
650+
"uuid",
651+
"pg-uuid"
649652
);
650653
}
651654
else {
@@ -672,7 +675,8 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
672675
jdbcTypeRegistry,
673676
preferredSqlTypeCodeForDuration,
674677
Duration.class,
675-
StandardBasicTypes.DURATION.getName()
678+
StandardBasicTypes.DURATION.getName(),
679+
"org.hibernate.type.DurationType"
676680
);
677681
}
678682
else {
@@ -722,8 +726,9 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
722726
jdbcTypeRegistry,
723727
preferredSqlTypeCodeForInstant,
724728
Instant.class,
725-
"instant",
726-
"org.hibernate.type.InstantType"
729+
StandardBasicTypes.INSTANT.getName(),
730+
"org.hibernate.type.InstantType",
731+
"instant"
727732
);
728733
}
729734
}

0 commit comments

Comments
 (0)