title: How to use list parameter in JPA query with Spring Data Rest?
body: <pre><code>@Query(&quot;Select loc from Location loc where loc in :locations&quot;
      )
      public Page&lt;Location&gt; searchLocations(List&lt;Location&gt; locations,
                                   Pageable pageable);
  </code></pre>
  <p>And then when the endpoint is called with</p>
  <pre><code>https://localhost:8080/api/v1/stores/search/searchLocations?locations=https://localhost:8080/api/v1/locations/23,https://localhost:8080/api/v1/locations/24
  </code></pre>
  <p>Only 24 is returned, not 23.</p>
  <p>How do you actually supply a list parameter to the JPA query?</p>