changed checkGroup Method to a Query
This commit is contained in:
@ -30,4 +30,7 @@ public interface EventRepository extends CrudRepository<EventDTO, Long> {
|
||||
|
||||
@Query("SELECT MAX(event_id) FROM event")
|
||||
public Long getHighesEvent_ID();
|
||||
|
||||
@Query("SELECT MAX(group_id) FROM event")
|
||||
public Long getMaxGroupID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user