SHARE
TWEET

Untitled

a guest May 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.example.restaurants.repositories;
  2.  
  3.  
  4.  
  5. import com.example.restaurants.data.models.Users;
  6.  
  7. import org.springframework.data.jpa.repository.JpaRepository;
  8.  
  9. import org.springframework.data.repository.CrudRepository;
  10.  
  11. import org.springframework.data.repository.PagingAndSortingRepository;
  12.  
  13.  
  14.  
  15. import java.util.List;
  16.  
  17. import java.util.UUID;
  18.  
  19.  
  20.  
  21. public interface UsersRepository extends CrudRepository<Users, Long> {
  22.  
  23.     Users findByEmail(String email);
  24.  
  25.  
  26.  
  27.     void deleteByEmail(String email);
  28.  
  29.  
  30.  
  31.     List<Users> findByNameContainingIgnoreCaseOrEmailContainingIgnoreCase(String query, String query1);
  32.  
  33.  
  34.  
  35.     Users findUsersById(Long num);
  36.  
  37.  
  38.  
  39.     List<Users> findAllByCity_Id(Long num);
  40.  
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top