objectsWithFetchSpecification appears to not do a deep fetch
objectsWithFetchSpecification appears to not do a deep fetch
- Subject: objectsWithFetchSpecification appears to not do a deep fetch
- From: Baiss Eric Magnusson <email@hidden>
- Date: Wed, 31 Mar 2004 18:45:42 -0800
I create a complicated fetch spec with qualifier and call:
fetchSpec = new EOFetchSpecification( "Event", null, sortOrderings );
clientSearch = new EOAndQualifier( qualifierAndArray );
fetchSpec.setQualifier( clientSearch );
NSArray objsForMonth = ec.objectsWithFetchSpecification( fetchSpec );
But when I try to reference a one-to-one relationship from one of the
fetched <eventItem's> in the NSArray (I know the foreign keys will find
a match):
Presenter theEventPresenter = eventItem.toPresenter();
I get <java.lang.NullPointerException>:
at
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObj
ect.java:1293)
at
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyG
enericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:
560)
at
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject
.java:1736)
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
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.