List of usage examples for org.springframework.data.repository PagingAndSortingRepository interface-usage
From source file com.iscas.rent.repository.ImMsgDao.java
public interface ImMsgDao extends PagingAndSortingRepository<ImMsg, Long>, JpaSpecificationExecutor<ImMsg> { @Query("select imMsg from ImMsg imMsg where imMsg.fromid=?1 and imMsg.toid=?2 and imMsg.status=0") List<ImMsg> findByBoth(Long fromid, Long toid); }
From source file com.gamewin.weixin.repository.ManageQRcodeDao.java
public interface ManageQRcodeDao extends PagingAndSortingRepository<ManageQRcode, Long>, JpaSpecificationExecutor<ManageQRcode> { Page<ManageQRcode> findByUserId(Long id, Pageable pageRequest); Page<ManageQRcode> findByTaskId(Long id, Pageable pageRequest);
From source file com.xyxy.platform.examples.quickstart.repository.TaskDao.java
public interface TaskDao extends PagingAndSortingRepository<Task, Long>, JpaSpecificationExecutor<Task> { Page<Task> findByUserId(Long id, Pageable pageRequest); @Modifying @Query("delete from Task task where task.user.id=?1")
From source file com.zhangli001v.gemdale.xmgl.repository.TaskDao.java
public interface TaskDao extends PagingAndSortingRepository<Task, Long>, JpaSpecificationExecutor<Task> { Page<Task> findByUserId(Long id, Pageable pageRequest); @Modifying @Query("delete from Task task where task.user.id=?1")
From source file com.atschx.summer.quickstart.repository.TaskDao.java
public interface TaskDao extends PagingAndSortingRepository<Task, Long>, JpaSpecificationExecutor<Task> { Page<Task> findByUserId(Long id, Pageable pageRequest); @Modifying @Query("delete from Task task where task.user.id=?1")
From source file com.surfilter.flood.maintain.repository.TaskDao.java
public interface TaskDao extends PagingAndSortingRepository<Task, Long>, JpaSpecificationExecutor<Task> { Page<Task> findByUserId(Long id, Pageable pageRequest); @Modifying @Query("delete from Task task where task.user.id=?1")
From source file org.atteo.moonshine.springdata.users.UserRepository.java
public interface UserRepository extends PagingAndSortingRepository<User, Integer> {
List<User> findByName(String name);
}
From source file org.springjack.examples.quickstart.repository.TaskDao.java
public interface TaskDao extends PagingAndSortingRepository<Task, Long>, JpaSpecificationExecutor<Task> { Page<Task> findByUserId(Long id, Pageable pageRequest); @Modifying @Query("delete from Task task where task.user.id=?1")
From source file org.openmastery.publisher.core.user.UserRepository.java
public interface UserRepository extends PagingAndSortingRepository<UserEntity, Long> {
UserEntity findByApiKey(String apiKey);
UserEntity findByEmail(String email);
From source file repository.OrderRepository.java
/** * Repository to access {@link Order}s. * */ public interface OrderRepository extends PagingAndSortingRepository<Order, Long> {