mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
Document実装
This commit is contained in:
parent
2ec4b96c14
commit
b6a30d5cbf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user