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

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

Introduction

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

Usage

From source file net.cyphoria.cylus.domain.repositories.KontenArtRepository.java

/**
 * @author Stefan Pennndorf <stefan@cyphoria.net>
 */
public interface KontenArtRepository extends PagingAndSortingRepository<KontenArt, Long> {

    KontenArt findByName(String name);

From source file us.repasky.microblog.repositories.FollowerRepository.java

/**
 * This class uses <a href="http://www.springsource.org/spring-data/jpa">Spring Data</a> to expose Follower entities from JPA.
 *
 * @author Drew Repasky
 */
public interface FollowerRepository extends PagingAndSortingRepository<Follower, Long> {

From source file org.axonframework.samples.trader.query.tradeexecuted.repositories.TradeExecutedQueryRepository.java

/**
 * @author Jettro Coenradie
 */
public interface TradeExecutedQueryRepository extends PagingAndSortingRepository<TradeExecutedEntry, String> {

    List<TradeExecutedEntry> findByOrderBookIdentifier(String orderBookIdentifier);

From source file net.bluemix.questions.data.controllers.SessionRepo.java

@Component
public interface SessionRepo extends PagingAndSortingRepository<Session, Long> {

    public Iterable<Session> findSessionsByActive(@Param("active") boolean active);

    public Iterable<Session> findSessionByNumber(@Param("number") String number);

From source file com.greglturnquist.payroll.EmployeeRepository.java

/**
 * @author Greg Turnquist
 */
// tag::code[]
@PreAuthorize("hasRole('ROLE_MANAGER')")
public interface EmployeeRepository extends PagingAndSortingRepository<Employee, Long> {

From source file dry.data.jpa.service.HotelRepository.java

@RepositoryRestResource(collectionResourceRel = "hotels", path = "hotels")
interface HotelRepository extends PagingAndSortingRepository<Hotel, Long> {

    Hotel findByCityAndName(City city, String name);

}

From source file com.ai.bss.query.customer.repositories.CustomerQueryRepository.java

public interface CustomerQueryRepository extends PagingAndSortingRepository<CustomerEntry, String> {
    // MongoRepository
    List<CustomerEntry> findByType(String type);
}

From source file com.rossedman.service.HotelRepository.java

@RepositoryRestResource(collectionResourceRel = "hotels", path = "hotels")
interface HotelRepository extends PagingAndSortingRepository<Hotel, Long> {

    Hotel findByCityAndName(City city, String name);

}

From source file com.ai.bss.query.party.repositories.PartyRoleQueryRepository.java

/**
 * @author Jettro Coenradie
 */
public interface PartyRoleQueryRepository extends PagingAndSortingRepository<PartyRoleEntry, String> {
    // MongoRepository
    List<PartyRoleEntry> findByPartyRoleType(String partyRoleType);

From source file org.centralperf.repository.SampleRepository.java

/**
 * Samples Spring Data (http://projects.spring.io/spring-data-jpa/) based repository
 * @since 1.0
 */
public interface SampleRepository extends PagingAndSortingRepository<Sample, Long> {