Last active
November 19, 2019 20:15
-
-
Save stefanotroia/139102e6748e116d0e6a39f37ce36570 to your computer and use it in GitHub Desktop.
Generic Repository
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 characters
@Repository | |
public interface GenericRepository<E extends BaseEntity> extends ReactiveCrudRepository<E, String> { | |
Mono<Void> deleteByIdAndTenantId(String id, String tenantId); | |
Mono<E> findFirstByIdAndTenantId(String id, String tenantId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment