package au.gov.ga.geodesy.igssitelog.domain.model;

import org.springframework.data.jpa.repository.JpaRepository;
import au.gov.ga.geodesy.domain.model.Event;

public interface EventRepository extends JpaRepository<Event, Integer> {
}

@@ -45,16 +45,40 @@
 model;%0A%0A
+import java.util.List;%0A%0A
 import o
@@ -131,16 +131,71 @@
 sitory;%0A
+import org.springframework.data.jpa.repository.Query;%0A%0A
 import a
@@ -304,11 +304,112 @@
 teger%3E %7B
+%0A%0A    @Query(%22select e from Event e where e.timeHandled is null%22)%0A    List%3CEvent%3E getPendingEvents();
 %0A%7D%0A

Add method to fetch pending events.