How do I count the total records using Projections?

hibernate-logo
Share:

The example below show how to get total row count using the Projections.rowCount(). The result of this query will be a single object of Integer that contains the result of executing an SQL select count (*) command.