Skip to content

Commit

Permalink
Update api/src/main/java/jakarta/data/repository/CrudRepository.java
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Rauh <[email protected]>
  • Loading branch information
otaviojava and njr-11 authored Oct 6, 2023
1 parent 4be2841 commit 43155f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/src/main/java/jakarta/data/repository/CrudRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ public interface CrudRepository<T, K> extends BasicRepository<T, K> {
* <p>Non-matching entities are ignored and do not cause an error to be raised.</p>
*
* @param entity the entity to update.
* @return the updated entity.
* @param entity the entity to update.
* @return true if a matching entity was found in the database to update, otherwise false.
* @throws NullPointerException if the entity is null.
*/
Iterable<T> update(T entity);
boolean update(T entity);

/**
* <p>Modifies entities that already exists in the database.</p>
Expand Down

0 comments on commit 43155f9

Please sign in to comment.