title: Spring JPA Query of a single column result into a generic type?
body: <p>I am relatively new to Spring-Boot and JPA. I've been doing pretty well with Entities and Repositories for complex/multi-column tables, but I have a view that I need to query which has only 2 columns, the key/index (Long) and a Date.</p>
  
  <p>I would like to be able to add a method to an existing Repository that can query this date based on the key, and return a single LocalDate result rather than an @Entity result.  Can this be done?</p>
  
  <p>Bonus questions:</p>
  
  <p>1) I'd like to have the java.sql.Date converted to a java.time.LocalDate. Is it possible to have this conversion within the Query since there is no Entity/Column to assign the Conversion to?</p>
  
  <p>2) Is it possible to also define a query that returns a <code>Map&lt;Long, LocalDate&gt;</code>?</p>