mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
Documentを作成するときに正しく既定値を設定するように
This commit is contained in:
parent
4bdb1a489c
commit
3ac7c4072d
|
@ -81,6 +81,8 @@ public class DocumentImpl implements Document {
|
||||||
documentEntity.updatedAt = meta.getUpdatedAt();
|
documentEntity.updatedAt = meta.getUpdatedAt();
|
||||||
documentEntity.createdAt = meta.getCreatedAt();
|
documentEntity.createdAt = meta.getCreatedAt();
|
||||||
documentEntity.parentId = meta.getParentId();
|
documentEntity.parentId = meta.getParentId();
|
||||||
|
documentEntity.isCombineChild = meta.getIsCombineChild();
|
||||||
|
documentEntity.isCombineParent = meta.getIsCombineParent();
|
||||||
|
|
||||||
database.documentDao().insert(documentEntity);
|
database.documentDao().insert(documentEntity);
|
||||||
|
|
||||||
|
@ -104,6 +106,8 @@ public class DocumentImpl implements Document {
|
||||||
meta.setUpdatedAt(new Date());
|
meta.setUpdatedAt(new Date());
|
||||||
meta.setCreatedAt(new Date());
|
meta.setCreatedAt(new Date());
|
||||||
meta.setParentId(null);
|
meta.setParentId(null);
|
||||||
|
meta.setIsCombineChild(false);
|
||||||
|
meta.setIsCombineParent(false);
|
||||||
return createDocument(meta);
|
return createDocument(meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user