jdbcTemplate.update(sql, actor.getFirstName(), actor.getLastName(), actor.getBirthDate(), actor.getId());
jdbcTemplate.update(deleteMoviesSql, actor.getId());
jdbcTemplate.batchUpdate(createMoviesSql, new BatchPreparedStatementSetter() {
@Override
public void setValues(PreparedStatement ps, int i) throws SQLException {
Movie movie = actor.getMovieList().get(i);
ps.setInt(1, movie.getId());
ps.setInt(2, actor.getId());
}
@Override
public int getBatchSize() {