Skip to content

Commit

Permalink
HHH-17351 Add missing basic type registration after changing preferre…
Browse files Browse the repository at this point in the history
…d jdbc type
  • Loading branch information
beikov committed Dec 1, 2023
1 parent eb5f9da commit 9403c49
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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"
);
}
}
Expand Down

0 comments on commit 9403c49

Please sign in to comment.