package data.repositories; import data.domain.nodes.Event; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.data.repository.query.Param; import org.springframework.data.rest.core.annotation.RepositoryRestResource; import java.util.List; @RepositoryRestResource(collectionResourceRel = "events", path = "events") public interface EventRepository extends PagingAndSortingRepository<Event, Long> { List<Event> findByEventType(@Param("0") String eventType); }