Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
pboonphong committed Dec 23, 2016
1 parent 540395c commit ba8601c
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@ private SqlSessionFactory getCustomSessionFactoryForClass() {
return (SqlSessionFactory) Proxy.newProxyInstance(
SqlSessionFactory.class.getClassLoader(),
new Class[]{SqlSessionFactory.class},
(proxy, method, args) -> {
if ("getConfiguration".equals(method.getName())) {
return getSqlSession().getConfiguration();
}
// dummy
return null;
});
(proxy, method, args) -> {
if ("getConfiguration".equals(method.getName())) {
return getSqlSession().getConfiguration();
}
// dummy
return null;
}
);
}

public static int getMapperCount(){
Expand Down

0 comments on commit ba8601c

Please sign in to comment.