List<CustomerGroup> customerGroupList = getJdbcOperations()
.query(query.getSql(), query.getParameters(), new CustomerGroupRowMapper(){
@Override
public CustomerGroup mapRow(ResultSet rs, CustomerGroup object)
throws SQLException {
CustomerGroup customerGroup = super.mapRow(rs, object);
customerGroup.setName(rs.getString("name"));
return customerGroup;
}
}.setTargetClass(CustomerGroup.class));
return customerGroupList;
}