mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
WIP
This commit is contained in:
parent
0a9054deac
commit
36b0884481
|
@ -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<TagEntity> 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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user