Mark createdAt as not updatable

This commit is contained in:
TonCherAmi 2023-01-13 17:28:45 +03:00 committed by GitHub
parent 20f07a4a9d
commit 82022e02ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ import javax.persistence.MappedSuperclass
@MappedSuperclass
abstract class BaseEntity : Serializable {
@CreatedDate
@CreatedDate(updatable = false)
lateinit var createdAt: ZonedDateTime
@LastModifiedDate