-->
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: Applying Criteria on Sets
PostPosted: Tue Nov 08, 2005 6:43 am 
Newbie

Joined: Wed Oct 12, 2005 4:39 pm
Posts: 15
Location: India
Hi,
Can I apply Criteria on sets?

Let us consider the following:

ContainerClass {
ContainedClass cc;
ContainedSet cs;
}


To filter on attributes of ContainerClass cc, I would do create a criteria for cc and use it to choose my filtering criteria.


criteria = session.createCriteria(ContainerClass.class)
ccCriteria = criteria.createCriteria("cc");
ccCritera.addExpression(....); //to filter on some attributes of cc
etc....

cs is a set of objects and I want to search based on the attributes of the objects in that set. Does Hibernate support what I am looking for? If so, how will the pseudo code look like ?


Thanks much.
Regards,
Raghu


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.