-->
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: using criteria query to test again collection size?
PostPosted: Sat Feb 12, 2005 12:23 pm 
Newbie

Joined: Wed Sep 22, 2004 10:10 am
Posts: 15
Location: Darmstadt, Germany
Hibernate version: 2.1.6

Name and version of the database you are using: MySQL 4.0.24

Hello,

I'd like to know if it is possible to filter a result using the criteria API by the size of a collection associated to a type. In my case, I have a bidirectional association with sets on each side.
For example, I'd like to limit the result set only to those objects where MyObject.getMyCollection().size() is bigger than 10 - how could I achieve this?

Thanks a lot & best regards,

Thorsten
--


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.