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
--
|
|