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 sample.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>

From source file fr.patouche.data.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.chevrier.legiondao.repository.CustomerRepository.java

/**
 * {@link Repository} to access {@link Customer} instances.
 * 
 * @author Oliver Gierke
 */
public interface CustomerRepository extends Repository<Customer, Long> {

From source file com.buaa.lzy.data.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 egov.data.ibatis.repository.SqlMapRepository.java

/**
 * iBatis specific extension of {@link org.springframework.data.repository.Repository}.
 * 
 * @author Yongkwon Park
 */
@NoRepositoryBean

From source file com.huawei.hostingtrial.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 comsat.sample.data.jpa.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 org.openmhealth.dsu.repository.DataPointRepository.java

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

From source file io.hedwig.petclinic.ui.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>
 * http://static.springsource.org/spring-data/jpa/docs/current/reference/html/jpa.repositories.html#jpa.query-methods.query-creation

From source file com.github.minly.data.jpa.service.CityRepository.java

interface CityRepository extends Repository<City, Long> {

    Page<City> findAll(Pageable pageable);

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