Skip to content

Commit

Permalink
feat: creating one function in consumer repository to filter then by …
Browse files Browse the repository at this point in the history
…permission
  • Loading branch information
PedroVidalDev committed Jun 12, 2024
1 parent c69e82f commit fde6f21
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.pedro.sphynx.infrastructure.entities.Consumer;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ConsumerRepository extends JpaRepository<Consumer, Long> {

boolean existsByTag(String tag);
Expand All @@ -14,4 +16,6 @@ public interface ConsumerRepository extends JpaRepository<Consumer, Long> {
Consumer getReferenceByRa(String ra);

void deleteByRa(String ra);

List<Consumer> findAllByPermission_Level(Integer level);
}

0 comments on commit fde6f21

Please sign in to comment.