EOQualifier for an optional to many relationship
EOQualifier for an optional to many relationship
- Subject: EOQualifier for an optional to many relationship
- From: Markus Ruggiero <email@hidden>
- Date: Mon, 05 Oct 2015 14:28:29 +0200
I have an optional many-2-many relationship between entities A and B. EntityModeler creates a join table with nothing modelled but the logical m:n relationships.
Now I need a qualifier to fetch all As that are either assigned to a given B or not assigned at all.
Following part works (finding all As assigned to a given B):
A.TO_MANY_B_ERXKEY.eq(myBObject)
Trying to find all As that have NO relationship to any B either finds nothing
A.TO_MANY_B_ERXKEY.isNull()
or results in a NullPointerException
A.TO_MANY_B_ERXKEY.isEmptyRelationship()
What am I missing here? In the end I want to simply join the two partial qualifiers by .or()
Thanks ---markus---
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden