List of usage examples for org.springframework.data.repository Repository interface-usage
From source file com.chang.mmp.service.ReviewRepository.java
interface ReviewRepository extends Repository<Review, Long> { Page<Review> findByHotel(Hotel hotel, Pageable pageable); Review findByHotelAndIndex(Hotel hotel, int index);
From source file oauth2.entities.LoginStatusRepository.java
public interface LoginStatusRepository extends Repository<LoginStatus, String> { @Modifying(clearAutomatically = true) @Query("update LoginStatus " // + "set failedLoginAttempts = 0, lastSuccessfulLogin = :when " // + "where userId = :userId")
From source file sample.ui.repository.PetRepository.java
/**
* Repository class for <code>Pet</code> domain objects All method names are
* compliant with Spring Data naming conventions so this interface can easily be
* extended for Spring Data See here:
*
* <pre>
From source file io.isoft.reg.repository.StaffDictRepository.java
public interface StaffDictRepository extends Repository<StaffDict, Long> {
Page<StaffDict> findAll(Pageable pageable);
List<StaffDict> findAll();
From source file com.crowd.mall.repository.ReviewRepository.java
public interface ReviewRepository extends Repository<Review, Long> { Page<Review> findByHotel(Hotel hotel, Pageable pageable); Review findByHotelAndIndex(Hotel hotel, int index);
From source file sample.data.jpa.repo1.ReviewRepository.java
public interface ReviewRepository extends Repository<Review, Long> { Page<Review> findByHotel(Hotel hotel, Pageable pageable); Review findByHotelAndIndex(Hotel hotel, int index);
From source file io.hedwig.petclinic.ui.repository.PetRepository.java
/**
* Repository class for <code>Pet</code> domain objects All method names are
* compliant with Spring Data naming conventions so this interface can easily be
* extended for Spring Data See here:
* <pre>
* http://static.springsource.org/spring-data/jpa/docs/current/reference/html/jpa.repositories.html#jpa.query-methods.query-creation
From source file org.hyp.springboot.rest.jpa.service.CityRepository.java
public interface CityRepository extends Repository<City, Long> {
Page<City> findAll(Pageable pageable);
City findByNameAndCountryAllIgnoringCase(String name, String country);
CityDto findByNameAndCountry(String name, String country);
From source file sample.ui.repository.VisitRepository.java
/**
* Repository class for <code>Visit</code> domain objects All method names are
* compliant with Spring Data naming conventions so this interface can easily be
* extended for Spring Data See here:
*
* <pre>
From source file sample.ui.repository.AuthorityRepository.java
/**
* Repository class for <code>Authority</code> domain objects All method names
* are compliant with Spring Data naming conventions so this interface can
* easily be extended for Spring Data See here:
* http://static.springsource.org/spring-data/
* jpa/docs/current/reference/html/jpa