Skip to content

Commit

Permalink
行バージョンをOffsetDateTimeするように、楽観ロックタスクのコメントを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjiyoshid-a committed Jan 14, 2025
1 parent 5784889 commit ebde0a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/web-csr/dressca-backend/infrastructure/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jar.enabled = true
<update id="updateByExampleSelective" parameterType="map">
<set>
<if test="row.rowVersion != null">
row_version = #{row.rowVersion,jdbcType=TIMESTAMP},
row_version = #{row.rowVersion,jdbcType=TIMESTAMP_WITH_TIMEZONE},
</if>
</set>
</update>
Expand Down Expand Up @@ -101,7 +101,7 @@ jar.enabled = true
<update id="updateByPrimaryKey" parameterType="com.dressca.infrastructure.repository.mybatis.generated.entity.CatalogItemEntity">
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}
</update>
Expand All @@ -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}
</update>
*/
task updateMyBatisGeneratorMapperForOptimisticLocking {
Expand Down

0 comments on commit ebde0a8

Please sign in to comment.