1、重构代码将数据处理全部交给 repository 来操作

2、升级支持免 Db启动提供服务
This commit is contained in:
2019-04-26 20:04:52 +08:00
parent 9a38d69eb0
commit ff240dd3ea
17 changed files with 350 additions and 212 deletions

View File

@@ -159,9 +159,13 @@ public abstract class Doc<T extends Doc> {
sourceName = source.name();
}
arangoSource = ArangoSource.use(sourceName);
this.db = arangoSource.db(table.catalog());
this.collection = arangoSource.collection(this);
try {
arangoSource = ArangoSource.use(sourceName);
this.db = arangoSource.db(table.catalog());
this.collection = arangoSource.collection(this);
} catch (Exception e) {
}
}
protected final static <T extends Doc> T dao(Class<T> type) {