I was looking at the reference here. We can do this -
String orderSql = "select * from order where id = ?";
jdbcTemplate.query(orderSql, new BeanPropertyRowMapper<>(Order.class), orderId);
This reads from the database and can directly deserialise into the Order
object. This is well and good.
What I want to do is -
String updateSql = "update order ? where id = ?";
jdbcTemplate.save(updateSql, new BeanPropertyRowMapper<>(Order.class), order, orderId);
Is there a way of doing this?