Example usage for org.springframework.data.repository Repository interface-usage

List of usage examples for org.springframework.data.repository Repository interface-usage

Introduction

In this page you can find the example usage for org.springframework.data.repository Repository interface-usage.

Usage

From source file org.farrukh.example.hotel.repository.CityRepository.java

public interface CityRepository extends Repository<City, Long> {

    Page<City> findAll(Pageable pageable);

    Page<City> findByNameContainingAndCountryContainingAllIgnoringCase(String name, String country,
            Pageable pageable);

From source file io.hedwig.petclinic.ui.repository.PetTypeRepository.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 io.smalldata.ohmageomh.data.repository.DataPointRepository.java

/**
 * A repository of data points.
 *
 * @see org.springframework.data.repository.CrudRepository
 * @author Emerson Farrugia
 */

From source file net.zerobuilder.examples.jpa.service.CityRepository.java

interface CityRepository extends Repository<City, Long> {

    Page<City> findAll(Pageable pageable);

    Page<City> findByNameContainingAndCountryContainingAllIgnoringCase(String name, String country,
            Pageable pageable);

From source file com.work.petclinic.repository.VetRepository.java

/**
 * Repository class for <code>Vet</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 net.daum.trip.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 com.instant.repository.springdatajpa.SpringDataClientRepository.java

/**
 * Spring Data JPA specialization of the {@link VetRepository} interface
 *
 * @author Michael Isvy
 * @since 15.1.2013
 */

From source file com.work.petclinic.repository.PetTypeRepository.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 com.vpath.em.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 io.isoft.reg.repository.ReviewRepository.java

public interface ReviewRepository extends Repository<Review, Long> {

    Page<Review> findByHotel(Hotel hotel, Pageable pageable);

    Review findByHotelAndIndex(Hotel hotel, int index);