Projections Hibernate
Projections class provides the methods to perform the operation on a particular column. Commonly used methods of Projections class: 1. Projections.rowCount: Return the total no. of rows. Syntax: Projections.rowCount() 2. Projections.avg: Return the average of a specified property. Syntax: Projections.avg(“property”) 3. Projections.countDistinct: Return the distinct count of a property. Syntax: Projections.countDistinct(“property”) 4. Projections.max: Return the maximum … Read more