瀏覽代碼

Use ClassLoader of dao interface for proxy

tags/v1.6.0
Constantin Nickel 9 年之前
父節點
當前提交
7eb1147daa
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/main/java/com/iciql/DaoProxy.java

+ 1
- 1
src/main/java/com/iciql/DaoProxy.java 查看文件

throw new IciqlException("Dao {0} must be an interface!", daoInterface.getName()); throw new IciqlException("Dao {0} must be an interface!", daoInterface.getName());
} }


ClassLoader classLoader = db.getClass().getClassLoader();
ClassLoader classLoader = daoInterface.getClassLoader();


Set<Class<?>> interfaces = new HashSet<Class<?>>(); Set<Class<?>> interfaces = new HashSet<Class<?>>();
interfaces.add(Dao.class); interfaces.add(Dao.class);

Loading…
取消
儲存