I am using Spring jpa 1.2 data, and I still cannot find the result of the generic query, like the following.
select count(v), date(v.createTimestamp) from UserEntity v group by date(v.createTimestamp)
What works great with embedded JPA
@Entity() public class UserEntity { @Id private long id; . . @Column(columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") private Timestamp createTimestamp; }
any my jpa repository
public interface UserRepository extends JpaRepository<UserEntity, Long>, JpaSpecificationExecutor<UserEntity> { }
since I can execute aggregate throw spring data queries, I don't see anything in the documentation
source share