Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
Bindings From 2 Entities - How?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Bindings From 2 Entities - How?
Subject
:
Bindings From 2 Entities - How?
From: "Jonathan Fleming" <
email@hidden
>
Date: Wed, 05 Mar 2003 17:45:45 +0000
Firstly, the EOModel Entity relationships are TbNavPage(toOne) >> < (toMany)TbNavPageContentPosition
The statements code below make up a fetch specification from the attributes of the Entity TbNavPageContentPosition
but there is an attribute in the toOne table/entity - TbNavPage - which I would like to include in the bindings.
How do I fix this (if possible) so that I can uncomment the 2 bits of offending code and include the property navPageName from the TbNavPage entity/table?
EOQualifier qualifier = EOQualifier.qualifierToMatchAllValues(queryBindings );
//EOSortOrdering navPageNameSortOrdering = EOSortOrdering.sortOrderingWithKey("navPageName", EOSortOrdering.CompareAscending);
EOSortOrdering statusSortOrdering = EOSortOrdering.sortOrderingWithKey("status", EOSortOrdering.CompareAscending);
EOSortOrdering visibilitySortOrdering = EOSortOrdering.sortOrderingWithKey("visibility", EOSortOrdering.CompareAscending);
NSArray sortOrderings =
new NSArray( new Object[]{/*navPageNameSortOrdering, */statusSortOrdering, visibilitySortOrdering});
EOFetchSpecification fetchSpec = new EOFetchSpecification("TbNavPageContentPosition", qualifier, sortOrderings);
EOEditingContext myEditingContext = this.session().defaultEditingContext();
navPageContentPositionList = myEditingContext.objectsWithFetchSpecification(fetchSpec);
Kind regards Jonathan
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://messenger.msn.co.uk
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
Follow-Ups
:
Re: Bindings From 2 Entities - How?
From:
Art Isbell <email@hidden>
Re: Bindings From 2 Entities - How?
From:
Chuck Hill <email@hidden>
Prev by Date:
deployment newbie question?
Next by Date:
Re: DistinctRows
Previous by thread:
Re: deployment newbie question?
Next by thread:
Re: Bindings From 2 Entities - How?
Index(es):
Date
Thread