Fix for ALF-7241:

- patch to mybatis-3.0.4
  - configuration option (property 'mybatis.useLocalCaches') to disable local caches that cause problems with result handlers not returning any results

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31333 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Steven Glover
2011-10-19 09:01:34 +00:00
parent 7c576151bb
commit d053782f25
4 changed files with 8 additions and 22 deletions

View File

@@ -199,11 +199,7 @@ public class CannedQueryDAOImpl extends AbstractCannedQueryDAOImpl
ResultHandlerTranslator<R> resultHandler = new ResultHandlerTranslator<R>(handler);
try
{
// TODO MyBatis workaround
// http://code.google.com/p/mybatis/issues/detail?id=58 (and #139, #234, ...)
template.clearCache();
if ((offset == 0) && (limit == Integer.MAX_VALUE))
if ((offset == 0) && (limit == Integer.MAX_VALUE))
{
template.select(query, parameterObj, resultHandler);
}