Interface RideRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Ride,Long>, org.springframework.data.repository.Repository<Ride,Long>

@Repository public interface RideRepository extends org.springframework.data.repository.CrudRepository<Ride,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByRiderId(long riderId)
     
    findByIdAndRiderId(long id, long riderId)
     

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
  • Method Details

    • findAllByRiderId

      Iterable<Ride> findAllByRiderId(long riderId)
    • findByIdAndRiderId

      Optional<Ride> findByIdAndRiderId(long id, long riderId)