@ -24,14 +24,14 @@ public interface EventRepository extends CrudRepository<EventDTO, Long> {
|
||||
List<Long> findGroup_idsWhereVisibility(@Param("vis") Boolean visibility);
|
||||
|
||||
@Query("SELECT DISTINCT group_id FROM event WHERE event_id > :status")
|
||||
public List<Long> findNewEventSinceStatus(@Param("status") Long status);
|
||||
List<Long> findNewEventSinceStatus(@Param("status") Long status);
|
||||
|
||||
@Query("SELECT * FROM event WHERE group_id IN (:groupIds) ")
|
||||
public List<EventDTO> findAllEventsOfGroups(@Param("groupIds") List<Long> groupIds);
|
||||
List<EventDTO> findAllEventsOfGroups(@Param("groupIds") List<Long> groupIds);
|
||||
|
||||
@Query("SELECT MAX(event_id) FROM event")
|
||||
public Long getHighesEvent_ID();
|
||||
Long getHighesEvent_ID();
|
||||
|
||||
@Query("SELECT MAX(group_id) FROM event")
|
||||
public Long getMaxGroupID();
|
||||
Long getMaxGroupID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user