return getJdbcOperations().query(query.getSql(),
query.getParameters(), new AttributeRowMapper(){
@Override
public Attribute mapRow(ResultSet rs, int rowNum)
throws SQLException {
Attribute attr = super.mapRow(rs, rowNum);
attr.setName(rs.getString("name"));
attr.setAttributeGroupName(rs.getString("attribute_group"));
return attr;
}
}.setTargetClass(Attribute.class));
}