I use a criteria query with associations, and we want to determine what is the result of the query in the select clause.
Example
MasterPOJO {
Set children;
}
Query:
Criteria query = session.createCriteria(MasterPOJO.class)
query.createCritera("children").add(...some restrictions);
Result:
The result masters is ok. the where condition is ok.
But:
The select contains all the columns from children,
but we only want to have a proper where condition and not getting everything as a result....
Which is in our case a huge overhead, because we have a lot of fields in the child pojo.
How can we tell the criteria that we only want to have master as a result ?
it could be this older issue:
http://opensource.atlassian.com/project ... e/HHH-1162but we use the latest core: Hibernate Core 3.3.1.GA