Last active
November 12, 2024 12:08
Revisions
-
jelilio revised this gist
Nov 12, 2024 . 1 changed file with 31 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,33 @@ public interface SoftDeleteRepository<T, ID> { @NonNull Mono<Long> count(Class<T> entityClass); @NonNull Mono<Boolean> existsById(@NonNull ID id, Class<T> entityClass); @NonNull Mono<T> findById(@NonNull ID id, Class<T> entityClass); @NonNull Flux<T> findAll(Class<T> entityClass); @NonNull Flux<T> findAllById(@NonNull Iterable<ID> iterable, Class<T> entityClass); @NonNull Flux<T> findAllById(@NonNull Publisher<ID> idPublisher, Class<T> entityClass); @NonNull Flux<T> findAll(@NonNull Sort sort, Class<T> entityClass); @NonNull @Transactional Mono<Void> softDeleteAll(Class<T> entityClass); @NonNull Mono<Void> softDeleteAllById(@NonNull Iterable<? extends ID> ids, Class<T> entityClass); @NonNull @Transactional Mono<Void> softDeleteById(@NonNull ID id, Class<T> entityClass); } -
jelilio created this gist
Nov 10, 2024 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ public interface SoftDeleteRepository<T, ID> extends Repository<T, ID> { }