-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Critera Query with Assocations determine SELECT Clause
PostPosted: Mon Jun 08, 2009 5:41 pm 
Beginner
Beginner

Joined: Wed Feb 23, 2005 11:32 am
Posts: 25
Location: Austria/Vienna
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-1162
but we use the latest core: Hibernate Core 3.3.1.GA


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.