title: Jpa does not recognize WHERE condition
body: <p>I have two tables</p>
  <pre class="lang-java prettyprint-override"><code>  class Student {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
      
      String name
      
      @OneToMany(mappedBy = &quot;student&quot;, cascade = CascadeType.ALL)
      List&lt;Book&gt; books
      }
  </code></pre>
  <pre class="lang-java prettyprint-override"><code>class Book {
    
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
          
      String name
  
      String time_stamp;
    
      @ManyToOne(fetch = FetchType.LAZY)
      @JsonIgnore
      private Student student;    
  }
  </code></pre>
  <p>So in the database, I have for example:</p>
  <p><strong>Table Student</strong></p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>id</th>
  <th>name</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>John</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p><strong>Table Book</strong></p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>id</th>
  <th>name</th>
  <th>time_stamp</th>
  <th>studentId</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>Bla</td>
  <td>12:00</td>
  <td>1</td>
  </tr>
  <tr>
  <td>--</td>
  <td>----</td>
  <td>----------</td>
  <td>----------</td>
  </tr>
  <tr>
  <td>2</td>
  <td>Test</td>
  <td>12:45</td>
  <td>1</td>
  </tr>
  </tbody>
  </table>
  </div>
  <pre class="lang-java prettyprint-override"><code>@Query(value = &quot;SELECT * FROM student LEFT JOIN Book ON student.id = book.student.id WHERE book.time_stamp &gt;= '12:00' AND book.time_stamp &lt;= '12:00'&quot;, nativeQuery = true)
  List&lt;Student&gt; findFromTo();
  </code></pre>
  <p>If we run the query in MySql Workbench everything is ok we receive only Students and books in given timestamp.</p>
  <p>The problem occurs when we run the query through spring JPA here we receive Student between this timestamp but with all the books linked to the Student.</p>
  <p>I want to receive in jpa Student object with Books objects which are filtered with timestamp.</p>