From 36b08844810b71c38e120896a69fe7036c6b5f85 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, 14 Dec 2023 10:59:28 +0900 Subject: [PATCH] WIP --- .../main/java/one/nem/lacerta/data/impl/DocumentImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 2ef4f121..406c83a6 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 @@ -9,9 +9,11 @@ import one.nem.lacerta.data.Document; import one.nem.lacerta.model.document.DocumentMeta; import one.nem.lacerta.model.document.DocumentDetail; +import one.nem.lacerta.model.document.tag.DocumentTag; import one.nem.lacerta.source.database.LacertaDatabase; import one.nem.lacerta.source.database.entity.DocumentEntity; +import one.nem.lacerta.source.database.entity.TagEntity; public class DocumentImpl implements Document{ @@ -41,6 +43,7 @@ public class DocumentImpl implements Document{ DocumentDetail documentDetail = new DocumentDetail(); DocumentEntity documentEntity = database.documentDao().findById(id); + ArrayList tagEntities = database.tagDao().findByIds(documentEntity.tagIds); // 組み立て処理 // TODO-rca: 切り出すべきかも? DocumentMeta documentMeta = new DocumentMeta(); @@ -48,7 +51,7 @@ public class DocumentImpl implements Document{ documentMeta.setTitle(documentEntity.title); documentMeta.setCreatedAt(documentEntity.createdAt); documentMeta.setUpdatedAt(documentEntity.updatedAt); - documentMeta.setTags(documentEntity.tagIds); + }