Hi
I am using the spring data jpa API, everything work fine as for the moment I am making query to get entities.
All methods (findA(...), findBy..(...)) return entities.
I need to query the number of users by date :
select birthday, count(id) from user group by birthday
How can I perform this query with spring data jpa ?
I need to receive a collection of dates with the number of user.
In case I can't do that with spring data jpa I have another question ?
How can I get a criteria builder from the LocalContainerEntityManagerFactoryBean ?
is It ok to do localContainerEntityManagerFactoryBean.getObject. getCriteriaBuilder()
Regards


Reply With Quote
