Skip to content

Commit

Permalink
Reword to save
Browse files Browse the repository at this point in the history
  • Loading branch information
IAM20 committed Jun 19, 2024
1 parent 1f13533 commit 90f3468
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,14 @@ protected <R> R requiredOne(
.orElseThrow(() -> new EmptyResultDataAccessException("RequiredOne result must be One.", 1));
}

protected <R> int updateOne(String sql, R aggregate) {
protected <R> int saveOne(String sql, R aggregate) {
return this.getJdbcOperations().update(
sql,
beanParameterSource(triggerBeforeSave(aggregate))
);
}

protected <R> int[] updateBatch(String sql, List<R> aggregate) {
protected <R> int[] saveBatch(String sql, List<R> aggregate) {
return this.getJdbcOperations().batchUpdate(
sql,
aggregate.stream().map(it -> beanParameterSource(triggerBeforeSave(it))).toArray(SqlParameterSource[]::new)
Expand Down

0 comments on commit 90f3468

Please sign in to comment.