Tags, DefaultBranch削除 WIP

This commit is contained in:
ろむねこ 2024-01-25 15:44:33 +09:00
parent cf60bc3423
commit 6e50239c9e
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -78,11 +78,9 @@ public class DocumentImpl implements Document {
documentEntity.id = meta.getId(); documentEntity.id = meta.getId();
documentEntity.title = meta.getTitle(); documentEntity.title = meta.getTitle();
documentEntity.author = meta.getAuthor(); documentEntity.author = meta.getAuthor();
documentEntity.defaultBranch = meta.getDefaultBranch();
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.tagIds = meta.getTagIds();
database.documentDao().insert(documentEntity); database.documentDao().insert(documentEntity);
@ -103,11 +101,9 @@ public class DocumentImpl implements Document {
meta.setId(UUID.randomUUID().toString()); meta.setId(UUID.randomUUID().toString());
meta.setTitle("New Document"); meta.setTitle("New Document");
meta.setAuthor("author"); meta.setAuthor("author");
meta.setDefaultBranch("master");
meta.setUpdatedAt(new Date()); meta.setUpdatedAt(new Date());
meta.setCreatedAt(new Date()); meta.setCreatedAt(new Date());
meta.setParentId(null); meta.setParentId(null);
meta.setTags(new ArrayList<>());
return createDocument(meta); return createDocument(meta);
} }
@ -168,11 +164,9 @@ public class DocumentImpl implements Document {
meta.setId(documentEntity.id); meta.setId(documentEntity.id);
meta.setTitle(documentEntity.title); meta.setTitle(documentEntity.title);
meta.setAuthor(documentEntity.author); meta.setAuthor(documentEntity.author);
meta.setDefaultBranch(documentEntity.defaultBranch);
meta.setUpdatedAt(documentEntity.updatedAt); meta.setUpdatedAt(documentEntity.updatedAt);
meta.setCreatedAt(documentEntity.createdAt); meta.setCreatedAt(documentEntity.createdAt);
meta.setParentId(documentEntity.parentId); meta.setParentId(documentEntity.parentId);
meta.setTags(new ArrayList<>()); // TODO-rca: タグを取得する
DocumentDetail detail = new DocumentDetail(); DocumentDetail detail = new DocumentDetail();