File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
src/main/java/org/apache/ibatis/executor/resultset Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -212,19 +212,17 @@ private List<ResultMapping> getResultMappingsForRowKey(ResultMap resultMap) {
212
212
213
213
private void createRowKeyForMappedProperties (ResultSet rs , CacheKey cacheKey , List <ResultMapping > resultMappings ) {
214
214
for (ResultMapping resultMapping : resultMappings ) {
215
- if (resultMapping .getNestedQueryId () == null && resultMapping .getNestedResultMapId () == null ) {
216
- final String column = resultMapping .getColumn ();
217
- final TypeHandler th = resultMapping .getTypeHandler ();
218
- if (column != null ) {
219
- try {
220
- final Object value = th .getResult (rs , column );
221
- if (value != null ) {
222
- cacheKey .update (column );
223
- cacheKey .update (value );
224
- }
225
- } catch (Exception e ) {
226
- //ignore
215
+ final String column = resultMapping .getColumn ();
216
+ final TypeHandler th = resultMapping .getTypeHandler ();
217
+ if (column != null ) {
218
+ try {
219
+ final Object value = th .getResult (rs , column );
220
+ if (value != null ) {
221
+ cacheKey .update (column );
222
+ cacheKey .update (value );
227
223
}
224
+ } catch (Exception e ) {
225
+ //ignore
228
226
}
229
227
}
230
228
}
You can’t perform that action at this time.
0 commit comments