From 6e50239c9e7a0f6fff60aaa84e3e32d872f544b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 25 Jan 2024 15:44:33 +0900 Subject: [PATCH] =?UTF-8?q?Tags,=20DefaultBranch=E5=89=8A=E9=99=A4=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/data/impl/DocumentImpl.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java index 9c1e2c47..bcd3318e 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java @@ -78,11 +78,9 @@ public class DocumentImpl implements Document { documentEntity.id = meta.getId(); documentEntity.title = meta.getTitle(); documentEntity.author = meta.getAuthor(); - documentEntity.defaultBranch = meta.getDefaultBranch(); documentEntity.updatedAt = meta.getUpdatedAt(); documentEntity.createdAt = meta.getCreatedAt(); documentEntity.parentId = meta.getParentId(); - documentEntity.tagIds = meta.getTagIds(); database.documentDao().insert(documentEntity); @@ -103,11 +101,9 @@ public class DocumentImpl implements Document { meta.setId(UUID.randomUUID().toString()); meta.setTitle("New Document"); meta.setAuthor("author"); - meta.setDefaultBranch("master"); meta.setUpdatedAt(new Date()); meta.setCreatedAt(new Date()); meta.setParentId(null); - meta.setTags(new ArrayList<>()); return createDocument(meta); } @@ -168,11 +164,9 @@ public class DocumentImpl implements Document { meta.setId(documentEntity.id); meta.setTitle(documentEntity.title); meta.setAuthor(documentEntity.author); - meta.setDefaultBranch(documentEntity.defaultBranch); meta.setUpdatedAt(documentEntity.updatedAt); meta.setCreatedAt(documentEntity.createdAt); meta.setParentId(documentEntity.parentId); - meta.setTags(new ArrayList<>()); // TODO-rca: タグを取得する DocumentDetail detail = new DocumentDetail();