We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c5ee36 commit 5feba86Copy full SHA for 5feba86
1 file changed
src/main/java/edu/tamu/app/model/repo/NotificationRepo.java
@@ -1,12 +1,19 @@
1
package edu.tamu.app.model.repo;
2
3
+import java.util.List;
4
+
5
import org.springframework.data.jpa.repository.JpaRepository;
6
7
+import edu.tamu.app.enums.NotificationLocation;
8
import edu.tamu.app.model.Notification;
9
import edu.tamu.app.model.repo.custom.NotificationRepoCustom;
10
11
public interface NotificationRepo extends JpaRepository<Notification, Long>, NotificationRepoCustom {
12
13
+ public List<Notification> findByIsActive(boolean isActive);
14
15
+ public List<Notification> findByIsActiveAndLocations(boolean isActive, NotificationLocation location);
16
17
public void delete(Notification notification);
18
19
}
0 commit comments