1

Impletended the updategroup(status) method in the API

This commit is contained in:
LukasEttel
2020-03-12 16:11:32 +01:00
parent 3fcf8105f7
commit 9795c10c14
7 changed files with 46 additions and 27 deletions

View File

@ -10,9 +10,12 @@ import java.util.List;
@Repository
public interface EventRepository extends CrudRepository<EventDTO, Long> {
@Query("SELECT * FROM event WHERE event_id > @status")
@Query("SELECT * FROM event WHERE event_id > :status")
public Iterable<EventDTO> findNewEventSinceStatus(@Param("status") Long status);
@Query("SELECT * FROM event WHERE group_id IN @groupIds ")
@Query("SELECT * FROM event WHERE group_id IN (:groupIds) ")
public Iterable<EventDTO> findAllEventsOfGroups(@Param("groupIds") List<Long> groupIds);
@Query("SELECT MAX(event_id) FROM event")
public Long getHighesEvent_ID();
}