title: Spring JPA Query Schema not found
body: <p>I have created query to search for available rooms in a hotel, based on date interval and room type. 
  I'm getting the following error when i run this query:</p>
  
  <blockquote>
    <p>org.h2.jdbc.JdbcSQLException: Schema "R" not found; SQL statement:</p>
  </blockquote>
  
  <p>Any ideas on what could be the problem?</p>
  
  <p>public interface RoomRepository extends JpaRepository {</p>
  
  <pre><code>    @Query(value = "
                  SELECT Room r 
                  FROM Room join r.bookings b    
                  WHERE not ((b.beginDate &gt;= :initDate And b.beginDate &lt;= :endDate) or (b.beginDate &gt;= :initDate And b.endDate &lt;= :endDate) or (b.beginDate &lt;= :initDate and b.endDate &gt;= :endDate) and b.approved = true and r.roomType = :roomType)"
              , nativeQuery=true)
      public List&lt;Room&gt; findWithDates(@Param("initDate") Date initDate, @Param("endDate") Date endDate, @Param("roomType") long roomType);
  }
  </code></pre>