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

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import au.gov.ga.geodesy.support.spring.AggregateRepository;

public interface EventRepository extends AggregateRepository<Event>, EventRepositoryCustom {
    @Override
    List<Event> findAll();

    @Query("select e from Event e where e.retries = " + Event.MAX_RETRIES)
    List<Event> findFailed();
}

@@ -362,39 +362,26 @@
 e e.
-retries = %22 + Event.MAX_RETRIES
+error is not null%22
 )%0A  

Fix find failed events