I am trying to use Hibernate detached criteria and have the following code:
This generates the above query with count(*). What should i add to get the count(*) in the query?
I tried projectionsCriteria.setProjection(Projections.count("column1")); and
projectionsCriteria.setProjection(Projections.rowCount());
that does not work. Any ideas?
SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care: