clean up
This commit is contained in:
@@ -2,15 +2,12 @@ package ch.progetto152.repository;
|
|||||||
|
|
||||||
import ch.progetto152.entity.WaypointsEntity;
|
import ch.progetto152.entity.WaypointsEntity;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
public interface WaypointRepository extends JpaRepository<WaypointsEntity, Long> {
|
public interface WaypointRepository extends JpaRepository<WaypointsEntity, Long> {
|
||||||
|
|
||||||
Optional<WaypointsEntity> findWaypointByName(String name);
|
|
||||||
|
|
||||||
Optional<List<WaypointsEntity>> findAllByLocationName(String locationName);
|
Optional<List<WaypointsEntity>> findAllByLocationName(String locationName);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user