EMPTY collection predicate

To test if a multivalued relationship is empty, use the following syntax:

collection-valued-path-expression  IS [NOT]  EMPTY

Example: Empty collection predicate

To find all departments with no employees:

SELECT OBJECT(d) FROM DeptBean d  WHERE  d.emps IS EMPTY


Related concepts
EJB query language
WHERE clause
Related tasks
Using EJB query



Searchable topic ID:   cque_emptycoll
Last updated: Jun 21, 2007 4:55:42 PM CDT    WebSphere Application Server Network Deployment, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/cque_emptycoll.html

Library | Support | Terms of Use | Feedback