• 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
objectsWithFetchSpecification appears to not do a deep fetch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: objectsWithFetchSpecification appears to not do a deep fetch
      • From: Chuck Hill <email@hidden>
  • Prev by Date: trying to get example to work - chapter 12/delete author/web objects 5 web applications
  • Next by Date: Re: objectsWithFetchSpecification appears to not do a deep fetch
  • Previous by thread: trying to get example to work - chapter 12/delete author/web objects 5 web applications
  • Next by thread: Re: objectsWithFetchSpecification appears to not do a deep fetch
  • Index(es):
    • Date
    • Thread