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 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/ae/cque_emptycoll.html

Library | Support | Terms of Use | Feedback