Mark createdAt as not updatable
This commit is contained in:
parent
20f07a4a9d
commit
82022e02ed
|
|
@ -13,7 +13,7 @@ import javax.persistence.MappedSuperclass
|
|||
@MappedSuperclass
|
||||
abstract class BaseEntity : Serializable {
|
||||
|
||||
@CreatedDate
|
||||
@CreatedDate(updatable = false)
|
||||
lateinit var createdAt: ZonedDateTime
|
||||
|
||||
@LastModifiedDate
|
||||
|
|
|
|||
Loading…
Reference in New Issue