title: Cache with JpaRepository
body: <p>Hi I have extended a JpaRepository interface in following way.</p>
  
  <pre><code>public interface StudentRepository extends JpaRepository&lt;Student,Integer&gt;
  {
  @Query(value= "SELECT s.id FROM student as s where s.createdat &gt;  ADDDATE(CURRENT_DATE, :maxage ", nativeQuery = true )
  public List&lt;Integer&gt; findWaitingStudentIds(@Param("maxage")int maxAge);
  }
  </code></pre>
  
  <p>Here is the <code>Entity</code> class.</p>
  
  <pre><code>@Entity(name="student ")
  public class Student implements Serializable {
      @Id
      @GeneratedValue(strategy=GenerationType.AUTO)
      @Column(unique=true, nullable=false)
      private Integer  id;
      @Temporal(TemporalType.TIMESTAMP)
      @Column(updatable = false,insertable = false)
      private Date createdat;  
  }
  </code></pre>
  
  <p>I want to add cache for  "List findWaitingStudentIds" method. How can I achieve this?</p>