Home Tutorialhelp Allcomments Hibernate Projections Projection Hibernate

 
 

Comments

 
User Comments for the tutorial:

Hibernate Projections (rowCount or countDistinct)



Advertisement
Comments

http://www.roseindia.net/hibernate/projections/pro
here explained too easily about hibernate tools to use orm mapping.. this is useful for beginners to guide.thanks to roseindia.. 

error
crit.setProjection(Projections.distinct(Projections.countDistinct("insuranceName"))); there is a error in the above line of code when i run the program. However, if i remove the Projections.distinct function it work fine with correct result. 

Hibernate Projections
This site is good tutorial. 

Question
Why do you use distinct twice? crit.setProjection(Projections.distinct(Projections.countDistinct("insuranceName"))); Is this wrong? crit.setProjection(Projections.countDistinct("insuranceName")));  

Related Tutorial and Articles
Hibernate Questions

hibernate projection
hibernate projection  why projection are used and in what situation do we need to use projections 

Hibernate Tutorial Example

Hibernate Projections Tutorials and Examples
Hibernate Projections Tutorials and Examples       Hibernate Projections In this section, you will learn about the hibernate projections with an appropriate example 

Hibernate Tutorial Example

Hibernate Projections
Hibernate Projections       In this section, you will learn about the hibernate projections with an appropriate example. Projections: The package Criteria is used as a framework 

Hibernate Tutorial Example

Hibernate Criteria Projections
Hibernate Criteria Projections The Hibernate Criteria Projection contains all the projections instances. You can add many projection in to it by calling... example on projection CriteriaProjection.java package net.roseindia.main 

Hibernate Tutorial Example

Hibernate Projections (rowCount or countDistinct)
Hibernate Projections (rowCount or countDistinct)   ... the hibernate projection with an example.  Projection Interface... are provided by the Projections factory class. The Projection interface might 

Hibernate Tutorial Example

Hibernate Projection Count
Hibernate Projection Count       In this section, you will learn to hibernate projection count. The example demonstrates the rowCount() method of the projection interface 

Hibernate-Tutorials

projection criteria hibernate Example
projection criteria hibernate Example In this Example, We will discuss about hibernate criteria query, The class org.hibernate.criterion.Projections  is used by applications as a framework for building new kinds of Projection 

Hibernate-Tutorials

Hibernate Criteria Projections, Aggregation and Grouping
Hibernate Criteria Projections, Aggregation and Grouping In this tutorial you will learn about the Projections, Aggregation and Grouping in Criteria Query. In Criteria query a query result set projection is represented as object 

Hibernate-Tutorials

Hibernate Criteria Projection
In this tutorial we are going to discuss about Hibernate Criteria Projection with example 

Hibernate Questions

HibernateCriteriaAggregate-Projection
(Employee.class); //Max Projection criteria.setProjection...(); System.out.println("Max salary:-"+list.get(0)); //Min Projection...)); //Avg Projection criteria.setProjection(Projections.avg("salary 

Advertisements Advertisements
 

 

 

DMCA.com