title: JpaRepository method name with DISTINCT ON
body: <p>I'm creating Spring application and I'm using JpaRepository to simplify database queries.</p>
  
  <p>I have problem with creating method name using JpaRepository conventions with DISTINCT ON. Here's my SQL query:</p>
  
  <pre><code>SELECT DISTINCT ON (s.device_id)
    s.status_id,
    s.error,
    s.receive_time,
    s.device_id
  FROM statuses s
  ORDER BY s.device_id, s.receive_time DESC
  </code></pre>
  
  <p>I tried such name but it's not working:</p>
  
  <pre><code>List&lt;Status&gt; findDistinctByDeviceId_OrderByReceiveTimeDesc();
  </code></pre>
  
  <p>Here's my classes (simplified):</p>
  
  <pre><code>public class Status {
      private long status_id;
      private String error;
      private Date receive_time;
      private Device device_id;
  }
  
  public class Device {
      private long device_id;
      private String name;
  }
  </code></pre>
  
  <p>Is is even possible to use DISTINCT ON in method name? I wouldn't like to use SQL queries because my classes are much more complex than above and I would like to add every field to query.</p>