Skip to content

Commit

Permalink
Fixes mybatis#176. Multiple mybatis instances in the same jvm can pro…
Browse files Browse the repository at this point in the history
…duce

ehcache collisions.
  • Loading branch information
emacarron committed Apr 9, 2014
1 parent 4cafdf0 commit 49dcb01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/apache/ibatis/executor/BaseExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public CacheKey createCacheKey(MappedStatement ms, Object parameterObject, RowBo
cacheKey.update(value);
}
}
if (configuration.getEnvironment() != null) cacheKey.update(configuration.getEnvironment().getId()); //issue #176
return cacheKey;
}

Expand Down

0 comments on commit 49dcb01

Please sign in to comment.