diff --git a/samples/web-csr/dressca-backend/infrastructure/build.gradle b/samples/web-csr/dressca-backend/infrastructure/build.gradle index 8d2d4f696..313b42437 100644 --- a/samples/web-csr/dressca-backend/infrastructure/build.gradle +++ b/samples/web-csr/dressca-backend/infrastructure/build.gradle @@ -68,7 +68,7 @@ jar.enabled = true - row_version = #{row.rowVersion,jdbcType=TIMESTAMP}, + row_version = #{row.rowVersion,jdbcType=TIMESTAMP_WITH_TIMEZONE}, @@ -101,7 +101,7 @@ jar.enabled = true update catalog_items set name = #{name,jdbcType=VARCHAR}, - row_version = #{rowVersion,jdbcType=TIMESTAMP} + row_version = #{rowVersion,jdbcType=TIMESTAMP_WITH_TIMEZONE} where id = #{id,jdbcType=BIGINT} @@ -111,7 +111,7 @@ jar.enabled = true set name = #{name,jdbcType=VARCHAR}, row_version = CURRENT_TIMESTAMP where id = #{id,jdbcType=BIGINT} - and row_version = #{rowVersion,jdbcType=TIMESTAMP} + and row_version = #{rowVersion,jdbcType=TIMESTAMP_WITH_TIMEZONE} */ task updateMyBatisGeneratorMapperForOptimisticLocking {