Skip to content

Commit 685107d

Browse files
committed
Improved documentation of deleteAllInBatch.
Closes #3198
1 parent 5c244e1 commit 685107d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/JpaRepository.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ default void deleteInBatch(Iterable<T> entities) {
7979
* Deletes the given entities in a batch which means it will create a single query. This kind of operation leaves JPAs
8080
* first level cache and the database out of sync. Consider flushing the {@link EntityManager} before calling this
8181
* method.
82-
*
82+
* <p>
83+
* It will also NOT honor cascade semantics of JPA, nor will it emit JPA lifecycle events.
84+
*</p>
8385
* @param entities entities to be deleted. Must not be {@literal null}.
8486
* @since 2.5
8587
*/

0 commit comments

Comments
 (0)