Skip to content

Commit 588408c

Browse files
committed
HHH-17351 Add missing basic type registration after changing preferred jdbc type
1 parent 3a28e8b commit 588408c

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
@@ -646,7 +646,10 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
646646
jdbcTypeRegistry,
647647
preferredSqlTypeCodeForUuid,
648648
UUID.class,
649-
"uuid"
649+
StandardBasicTypes.UUID.getName(),
650+
"org.hibernate.type.PostgresUUIDType",
651+
"uuid",
652+
"pg-uuid"
650653
);
651654
}
652655
else {
@@ -673,7 +676,8 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
673676
jdbcTypeRegistry,
674677
preferredSqlTypeCodeForDuration,
675678
Duration.class,
676-
StandardBasicTypes.DURATION.getName()
679+
StandardBasicTypes.DURATION.getName(),
680+
"org.hibernate.type.DurationType"
677681
);
678682
}
679683
else {
@@ -730,8 +734,9 @@ public void contributeAttributeConverter(Class<? extends AttributeConverter<?, ?
730734
jdbcTypeRegistry,
731735
preferredSqlTypeCodeForInstant,
732736
Instant.class,
733-
"instant",
734-
"org.hibernate.type.InstantType"
737+
StandardBasicTypes.INSTANT.getName(),
738+
"org.hibernate.type.InstantType",
739+
"instant"
735740
);
736741
}
737742
}

0 commit comments

Comments
 (0)