Browse Source

Use ClassLoader of dao interface for proxy

tags/v1.6.0
Constantin Nickel 9 years ago
parent
commit
7eb1147daa
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main/java/com/iciql/DaoProxy.java

+ 1
- 1
src/main/java/com/iciql/DaoProxy.java View File

@@ -78,7 +78,7 @@ final class DaoProxy<X extends Dao> implements InvocationHandler, Dao {
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<?>>();
interfaces.add(Dao.class);

Loading…
Cancel
Save