From 82022e02ed312562d3bf3f71dcb00debc6202055 Mon Sep 17 00:00:00 2001 From: TonCherAmi Date: Fri, 13 Jan 2023 17:28:45 +0300 Subject: [PATCH] Mark createdAt as not updatable --- .../kotlin/ru/touchin/common/spring/jpa/models/BaseEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-spring-jpa/src/main/kotlin/ru/touchin/common/spring/jpa/models/BaseEntity.kt b/common-spring-jpa/src/main/kotlin/ru/touchin/common/spring/jpa/models/BaseEntity.kt index f218f67..1427850 100644 --- a/common-spring-jpa/src/main/kotlin/ru/touchin/common/spring/jpa/models/BaseEntity.kt +++ b/common-spring-jpa/src/main/kotlin/ru/touchin/common/spring/jpa/models/BaseEntity.kt @@ -13,7 +13,7 @@ import javax.persistence.MappedSuperclass @MappedSuperclass abstract class BaseEntity : Serializable { - @CreatedDate + @CreatedDate(updatable = false) lateinit var createdAt: ZonedDateTime @LastModifiedDate