Skip to content

Instantly share code, notes, and snippets.

@stefanotroia
Last active November 19, 2019 20:15
Show Gist options
  • Save stefanotroia/139102e6748e116d0e6a39f37ce36570 to your computer and use it in GitHub Desktop.
Save stefanotroia/139102e6748e116d0e6a39f37ce36570 to your computer and use it in GitHub Desktop.
Generic Repository
@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