HHH-16591 Update the docs to use `JdbcTypeCode` instead of `JdbcType` to override an SQL type for Duration

This commit is contained in:
marko-bekhta 2023-05-11 18:54:28 +02:00 committed by Christian Beikov
parent 86a8ef7492
commit 2f16103708
1 changed files with 1 additions and 1 deletions

View File

@ -990,7 +990,7 @@ include::{example-dir-basic-mapping}/basic/BlobByteArrayTest.java[tags=basic-blo
By default, Hibernate maps `Duration` to the `NUMERIC` SQL type.
TIP: It's possible to map `Duration` to the `INTERVAL_SECOND` SQL type using `@JdbcType(INTERVAL_SECOND)` or by setting `hibernate.type.preferred_duration_jdbc_type=INTERVAL_SECOND`
TIP: It's possible to map `Duration` to the `INTERVAL_SECOND` SQL type using `@JdbcTypeCode(INTERVAL_SECOND)` or by setting `hibernate.type.preferred_duration_jdbc_type=INTERVAL_SECOND`
[[basic-duration-example]]
.Mapping Duration