return getJdbcOperations().query(query.getSql(), query.getParameters(),
new VoucherHistoryRowMapper(){
@Override
public VoucherHistory mapRow(ResultSet rs, int rowNum)
throws SQLException {
VoucherHistory vh = super.mapRow(rs, rowNum);
vh.setCustomer(rs.getString("firstname")+" "+rs.getString("lastname"));
return vh;
}
});
}