メソッド追加

This commit is contained in:
r-ca 2023-12-16 13:41:12 +09:00
parent c875ba5e54
commit 8c21d0db04
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -149,4 +149,17 @@ public class DocumentMeta {
this.tags = tags;
}
/**
* updatedAtを現在時刻に設定する
*/
public void setUpdatedAtNow() {
this.updatedAt = new Date();
}
/**
* createdAtを現在時刻に設定する
*/
public void setCreatedAtNow() {
this.createdAt = new Date();
}
}