xpath constraint association

Hello, I want to view a list of objects, but only if this object has an association with another object. How can I model this as aan Xpath constraint?
1 answers

You can treat the referenced object like a boolean in Xpath. For example, let's say you only want to select User entities that have at least one UserRole associated. You would select System.User as your entity, and the XPath constraint would look like this: