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: need to get all properties of a class in joined crit Qry
PostPosted: Wed Jul 12, 2006 12:02 pm 
Beginner
Beginner

Joined: Fri May 26, 2006 7:15 am
Posts: 20
Location: Vandavasi, TamilNadu
Hi,

I have a criteria query joining two table(each has more than 100 fields).

List listOne = session.createCriteria(A.class,"classA")
.createAlias("tblB","classB")
.list();


When i run it, it will select all the fields from A & B. How i can change so that the query select the fields only from A. since, i have lot of fields, specifying all the properties in ProjectionList is not a good idea. If there are any way to achieve this, please help me.

Thanks

_________________
gajini
------------------


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.