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 org.fatal1t.backend.forexbackend.db.repositories.EURUSDCandlesRepository.java

/**
 *
 * @author fatal1t
 */
public interface EURUSDCandlesRepository extends PagingAndSortingRepository<EURUSDCandle, Long> {
    public Page<EURUSDCandle> findAllByOrderByIdDesc(Pageable page);

From source file com.azteca.persistence.repository.KalturaUnidadRepository.java

/**
 *
 * @author Santa
 */
public interface KalturaUnidadRepository extends PagingAndSortingRepository<KalturaUnidad, Integer> {
    List<KalturaUnidad> findAll();

From source file gt.dakaik.rest.repository.ForumUserRepository.java

/**
 *
 * @author Dario Calderon
 */
@Repository
public interface ForumUserRepository extends PagingAndSortingRepository<ForumUser, Long> {

From source file com.gamewin.weixin.repository.HistoryUrlDao.java

public interface HistoryUrlDao
        extends PagingAndSortingRepository<HistoryUrl, Long>, JpaSpecificationExecutor<HistoryUrl> {

    @Query("SELECT COUNT(t.taskId) FROM HistoryUrl  t WHERE  t.userIp=?1 AND t.qrcodeId=?2")
    Integer selectHistoryUrlByuserIpAndqrcodeId(String userIp, Long qrcodeId);
}

From source file com.gamewin.weixin.repository.WeiXinUserDao.java

public interface WeiXinUserDao
        extends PagingAndSortingRepository<WeiXinUser, Long>, JpaSpecificationExecutor<WeiXinUser> {

    @Query("SELECT COUNT(DISTINCT t.fromUserName) FROM WeiXinUser  t WHERE  t.event='subscribe' AND t.eventKey=?1")
    int selectSubscribeByUserId(String key);
}

From source file cn.dsgrp.field.stock.repository.DayDealingsDao.java

public interface DayDealingsDao extends PagingAndSortingRepository<DayDealings, Long> {

    @Query("{stock.code:?0,cDate:?1}")
    public List<DayDealings> findByStockCodeAndCdate(int code, String s);
}

From source file com.azteca.persistence.repository.KalturaProgramaRepository.java

/**
 *
 * @author Santa
 */
public interface KalturaProgramaRepository extends PagingAndSortingRepository<KalturaPrograma, Integer> {
    List<KalturaPrograma> findAll();

From source file com.gamewin.weixin.repository.HistoryWeixinDao.java

public interface HistoryWeixinDao
        extends PagingAndSortingRepository<HistoryWeixin, Long>, JpaSpecificationExecutor<HistoryWeixin> {

    @Query("SELECT COUNT(t.taskId) FROM HistoryWeixin  t WHERE  t.taskId=?1 AND t.fromUserName=?2")
    Integer selectHistoryWeixinBytaskId(Long taskId, String fromUserName);
}

From source file com.azteca.persistence.repository.KalturaFabricaRepository.java

/**
 *
 * @author Santa
 */
public interface KalturaFabricaRepository extends PagingAndSortingRepository<KalturaFabrica, Integer> {
    List<KalturaFabrica> findAll();

From source file com.azteca.persistence.repository.KalturaEntryRepository.java

/**
 *
 * @author Santa
 */
public interface KalturaEntryRepository extends PagingAndSortingRepository<KalturaEntry, Integer> {
    List<KalturaEntry> findAll();