Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
Object Relational Mapping
Using a subqueries results in a projection using Criteria
posted 8 years ago
Im curious whether it is possible to use the projections of a subquery (DetachedCriteria) with the projection list of another criteria.
// create criteria object above crit.setProjection( Projections.projectionList() .add( Projections.property("id")) // somehow append the projections for the subquery onto this one? };
I have been searching for a while and it seems to me you can only restrict based upon a subqueries results? Is this the case?
Thank you in advance,
How to use DetachedCriteria in multiple table?
Hibernate join into single object
problem with "group by"
querying problem with Hibernate when we use multiple tables in query
Complex HQL Query