title: Get records for last 3 days via Spring JPA Repository
body: <p>I have an entity which contains field <code>date</code>.</p>
  <pre><code>@Entity
  @Table(name=&quot;messages&quot;, schema = &quot;users&quot;)
  ...
  public class Message {
  
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      private Long id;
  
      @Column(name = &quot;author&quot;)
      private String author;
  
      @Column(name = &quot;tags&quot;)
      private String tags;
  
      @Column(name = &quot;message_date&quot;)
      private LocalDate date;
  
      @Override
      public String toString() {
         ...    
      }
  }
  </code></pre>
  <pre><code>@Repository
  public interface MessageRepository extends JpaRepository&lt;Message, Long&gt; {
  
      Message findByMessageId(Long id);
  
  }
  </code></pre>
  <p>I'm using Spring Data JPA with repository. I want to get all messages from database for last 3 days (field <code>date</code>). How can I do it with Spring JPA?</p>
  <pre><code>@Query(...?)
  List&lt;Message&gt; findBy...?
  </code></pre>