// load eager load group
if (node.eagerLoadMask != null) {
JDBCFieldBridge[] tableFields = relatedEntity.getTableFields();
for (int fieldInd = 0; fieldInd < tableFields.length; ++fieldInd) {
if (node.eagerLoadMask[fieldInd]) {
JDBCFieldBridge field = tableFields[fieldInd];
ref[0] = null;
index = field.loadArgumentResults(rs, index, ref);
if (cacheRelatedData) {
if (log.isTraceEnabled()) {
log.trace("Caching " +
relatedEntity.getEntityName() +
'[' +
relatedId +
"]." +
field.getFieldName() + "=" + ref[0]);
}
relatedCache.addPreloadData(relatedId, field, ref[0]);
}
}
}