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
|
// Lacerta/vcs
|
||||||
import one.nem.lacerta.vcs.LacertaVcs;
|
import one.nem.lacerta.vcs.LacertaVcs;
|
||||||
|
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
|
||||||
|
|
||||||
|
|
||||||
public class DocumentImpl implements Document {
|
public class DocumentImpl implements Document {
|
||||||
|
@ -36,8 +37,8 @@ public class DocumentImpl implements Document {
|
||||||
@Inject
|
@Inject
|
||||||
LacertaDatabase database;
|
LacertaDatabase database;
|
||||||
|
|
||||||
// @Inject
|
@Inject
|
||||||
// LacertaVcs vcs;
|
LacertaVcsFactory vcsFactory;
|
||||||
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
@ -69,7 +70,8 @@ public class DocumentImpl implements Document {
|
||||||
database.documentDao().insert(documentEntity);
|
database.documentDao().insert(documentEntity);
|
||||||
|
|
||||||
// Vcs
|
// Vcs
|
||||||
// vcs.createDocument(meta.getId());
|
LacertaVcs vcs = vcsFactory.create(meta.getId());
|
||||||
|
vcs.createDocument(meta.getId());
|
||||||
|
|
||||||
return detail;
|
return detail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user