Register / Login
Win a copy of
Java 9 Revealed
this week in the
Features new in Java 9
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
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,
Don't get me started about those stupid
Boost this thread!
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