solution1.BlogPostRepository.java Source code

Java tutorial

Introduction

Here is the source code for solution1.BlogPostRepository.java

Source

/*
 * $Id$
 * Copyright (c) Codecenter Oy. All rights reserved.
 *
 * This software is the proprietary information of Codecenter Oy.
 * Use is subject to license terms.
 */
package solution1;

import java.util.Date;
import java.util.List;

import blog.model.BlogPost;

import org.springframework.data.jpa.repository.JpaRepository;

public interface BlogPostRepository extends JpaRepository<BlogPost, Integer> {
    List<BlogPost> findByCreatedBetween(Date beginDate, Date endDate);
}