soc.scar.repository.GroupReviewRepository.java Source code

Java tutorial

Introduction

Here is the source code for soc.scar.repository.GroupReviewRepository.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package soc.scar.repository;

import java.util.Date;
import java.util.List;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;
import soc.scar.domain.GroupReview;

public interface GroupReviewRepository extends MongoRepository<GroupReview, String> {

    public List<GroupReview> findByCreationDateBetween(Date from, Date to, Sort sort);

    public List<GroupReview> findByCreationDateGreaterThanEqual(Date from, Sort sort);

    public List<GroupReview> findByCreationDateLessThanEqual(Date to, Sort sort);

}