diff --git a/src/main/kotlin/org/gitanimals/guild/domain/AbstractTime.kt b/src/main/kotlin/org/gitanimals/guild/domain/AbstractTime.kt index ff15c58..c7f41a4 100644 --- a/src/main/kotlin/org/gitanimals/guild/domain/AbstractTime.kt +++ b/src/main/kotlin/org/gitanimals/guild/domain/AbstractTime.kt @@ -14,7 +14,7 @@ import java.time.Instant abstract class AbstractTime( @CreatedDate @Column(name = "created_at") - val createdAt: Instant = Instant.now(), + var createdAt: Instant = Instant.now(), @LastModifiedDate @Column(name = "modified_at") diff --git a/src/main/kotlin/org/gitanimals/render/domain/AbstractTime.kt b/src/main/kotlin/org/gitanimals/render/domain/AbstractTime.kt index 40c3be4..99a1fc9 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/AbstractTime.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/AbstractTime.kt @@ -14,7 +14,7 @@ import java.time.Instant abstract class AbstractTime( @CreatedDate @Column(name = "created_at") - val createdAt: Instant = Instant.now(), + var createdAt: Instant = Instant.now(), @LastModifiedDate @Column(name = "modified_at")