many-to-many relationship and qualifiers
many-to-many relationship and qualifiers
- Subject: many-to-many relationship and qualifiers
- From: Francesco Romano <email@hidden>
- Date: Wed, 10 Dec 2008 17:43:11 +0100
Hi...
I read in the list that if I need an attribute in a many-to-many
relationship I cannot create a "flattern" relationship.
So I created a simple n-to-1 1-to-n.
Now.. I don't understand if I need to do some more "work" in my
classes...
And... another thing: qualifier.
Let's call Ent1 and Ent2 the 2 entities above and E12 the relation
entity.
I want to fetch all the records in Ent2 that are linked to a
particular Ent1.
I can't do it.. because I've an array and I don't know how to compare
an array with a single value...
I tried something like
Ent2.E12.eq(Ent1.E12).and(Ent1.attr1.eq(myString)) but it did not
compile
Francesco
_______________________________________________
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