Document実装

This commit is contained in:
ろむねこ 2024-01-17 10:57:08 +09:00
parent 2ec4b96c14
commit b6a30d5cbf
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -24,6 +24,7 @@ import one.nem.lacerta.utils.LacertaLogger;
// Lacerta/vcs
import one.nem.lacerta.vcs.LacertaVcs;
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
public class DocumentImpl implements Document {
@ -36,8 +37,8 @@ public class DocumentImpl implements Document {
@Inject
LacertaDatabase database;
// @Inject
// LacertaVcs vcs;
@Inject
LacertaVcsFactory vcsFactory;
@Inject
@ -69,7 +70,8 @@ public class DocumentImpl implements Document {
database.documentDao().insert(documentEntity);
// Vcs
// vcs.createDocument(meta.getId());
LacertaVcs vcs = vcsFactory.create(meta.getId());
vcs.createDocument(meta.getId());
return detail;
}