return getJdbcOperations().query(query.getSql(),
query.getParameters(), new AttributeGroupRowMapper(){
@Override
public AttributeGroup mapRow(ResultSet rs, int rowNum)
throws SQLException {
AttributeGroup attrGrp = super.mapRow(rs, rowNum);
attrGrp.setName(rs.getString("name"));
return attrGrp;
}
}.setTargetClass(AttributeGroup.class));
}