CriteriaBuilder count(*) instead of count(id) I’m creating a dynamic query in a Spring Boot (3.3) app, with Hibernate, Postgresql behind…