mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 06:49:09 +00:00
HHH-17351 Add missing basic type registration after changing preferred jdbc type
This commit is contained in:
parent
eb5f9da285
commit
9403c4932a
@ -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 {
|
||||
@ -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 {
|
||||
@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user