Skip to content

Commit

Permalink
revert[orm]: export MongoDatabase method
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed May 15, 2024
1 parent d0033d7 commit 78a7a21
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion orm/src/main/java/com/zfoo/orm/manager/IOrmManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public interface IOrmManager {
* CN:获取MongoClient,通过MongoClient可以获取到其它数据库或者做一些其它的复杂操作
*/
MongoClient mongoClient();
MongoDatabase mongoDatabase();

<E extends IEntity<?>> IEntityCache<?, E> getEntityCaches(Class<E> clazz);

Expand Down
5 changes: 0 additions & 5 deletions orm/src/main/java/com/zfoo/orm/manager/OrmManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,6 @@ public MongoClient mongoClient() {
return mongoClient;
}

@Override
public MongoDatabase mongoDatabase() {
return mongodbDatabase;
}

@Override
public <E extends IEntity<?>> IEntityCache<?, E> getEntityCaches(Class<E> clazz) {
var usable = allEntityCachesUsableMap.get(clazz);
Expand Down

0 comments on commit 78a7a21

Please sign in to comment.