Interface DistanceCrudRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteByFromIdOrToId​(long deletedLocationId)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

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

      • deleteByFromIdOrToId

        @Modifying
        @Transactional
        @Query("delete from DistanceEntity where from_id = :deletedLocationId or to_id = :deletedLocationId")
        void deleteByFromIdOrToId​(@Param("deletedLocationId")
                                  long deletedLocationId)