Interface JourneyRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Journey,Integer>, org.springframework.data.jpa.repository.JpaRepository<Journey,Integer>, org.springframework.data.repository.ListCrudRepository<Journey,Integer>, org.springframework.data.repository.ListPagingAndSortingRepository<Journey,Integer>, org.springframework.data.repository.PagingAndSortingRepository<Journey,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<Journey>, org.springframework.data.repository.Repository<Journey,Integer>

@Repository public interface JourneyRepository extends org.springframework.data.jpa.repository.JpaRepository<Journey,Integer>
Queries database regarding the Journey entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    findJourneysByDriverId(int driverId)
     
    findJourneysByLocationFromIdAndLocationToIdAndDateTimeBetween(int locationIdFrom, int locationIdTo, Instant dateTimeFrom, Instant dateTimeTo)
     
    findJourneysByPassengersId(int passengerId)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findJourneysByDriverId

      List<Journey> findJourneysByDriverId(int driverId)
    • findJourneysByPassengersId

      List<Journey> findJourneysByPassengersId(int passengerId)
    • findJourneysByLocationFromIdAndLocationToIdAndDateTimeBetween

      List<Journey> findJourneysByLocationFromIdAndLocationToIdAndDateTimeBetween(int locationIdFrom, int locationIdTo, Instant dateTimeFrom, Instant dateTimeTo)