Documentを作成するときに正しく既定値を設定するように

This commit is contained in:
r-ca 2024-01-27 17:21:39 +09:00
parent 4bdb1a489c
commit 3ac7c4072d
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -81,6 +81,8 @@ public class DocumentImpl implements Document {
documentEntity.updatedAt = meta.getUpdatedAt();
documentEntity.createdAt = meta.getCreatedAt();
documentEntity.parentId = meta.getParentId();
documentEntity.isCombineChild = meta.getIsCombineChild();
documentEntity.isCombineParent = meta.getIsCombineParent();
database.documentDao().insert(documentEntity);
@ -104,6 +106,8 @@ public class DocumentImpl implements Document {
meta.setUpdatedAt(new Date());
meta.setCreatedAt(new Date());
meta.setParentId(null);
meta.setIsCombineChild(false);
meta.setIsCombineParent(false);
return createDocument(meta);
}