Skip to content

Commit 5feba86

Browse files
committed
Added methods to retrieve active alerts
1 parent 2c5ee36 commit 5feba86

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
package edu.tamu.app.model.repo;
22

3+
import java.util.List;
4+
35
import org.springframework.data.jpa.repository.JpaRepository;
46

7+
import edu.tamu.app.enums.NotificationLocation;
58
import edu.tamu.app.model.Notification;
69
import edu.tamu.app.model.repo.custom.NotificationRepoCustom;
710

811
public interface NotificationRepo extends JpaRepository<Notification, Long>, NotificationRepoCustom {
912

13+
public List<Notification> findByIsActive(boolean isActive);
14+
15+
public List<Notification> findByIsActiveAndLocations(boolean isActive, NotificationLocation location);
16+
1017
public void delete(Notification notification);
1118

1219
}

0 commit comments

Comments
 (0)