JDBCCMPFieldBridge2[] pkFields = (JDBCCMPFieldBridge2[]) entity.getPrimaryKeyFields();
//int rsInd = 1;
for (int i = 0; i < pkFields.length; ++i) {
JDBCCMPFieldBridge2 field = pkFields[i];
//Object columnValue = field.loadArgumentResults(rs, rsInd++);
Object columnValue = field.loadArgumentResults(rs, field.getRowIndex() + 1);
pk = field.setPrimaryKeyValue(pk, columnValue);
}
return pk;
}