title: how to retrieve an aggregation function query with spring-data-jpa
body: <p>I am using Spring data jpa 1.2 and I can't find anyway to retrieve an aggregate query result like the following one.</p>
  
  <pre><code>select count(v), date(v.createTimestamp) from UserEntity v
      group by date(v.createTimestamp)
  </code></pre>
  
  <p>Which work perfectly with the native JPA    </p>
  
  <pre><code>@Entity()
  public class UserEntity {
  
     @Id
     private long id;
     .
     .
     @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
     private Timestamp createTimestamp;
  
  }
  </code></pre>
  
  <p>any my JPA repository is </p>
  
  <pre><code>public interface UserRepository extends JpaRepository&lt;UserEntity, Long&gt;, 
        JpaSpecificationExecutor&lt;UserEntity&gt; {
  }
  </code></pre>
  
  <p>so how can I do an aggregate queries throw Spring data, I find absolutely nothing in the documentation </p>