• 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
Re: to-many relationship fetching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: to-many relationship fetching


  • Subject: Re: to-many relationship fetching
  • From: "Anurag Khare" <email@hidden>
  • Date: Wed, 30 Apr 2003 10:10:00 -0700

Thanks for your response..

But if the "list" is bound to entityAItem.entityBs then "Item" is bound to what as I wish to display Entity B's attributes so "Item" should be bound to Entity B's object, right? once I do that it throws illegal argument exception: while trying to set the field "Entity A object" on an object of type Main we expected a Entity A Object but received Entity B Object with values of.....

Thanks...




From: Art Isbell <email@hidden>
To: email@hidden
Subject: Re: to-many relationship fetching
Date: Tue, 29 Apr 2003 13:58:01 -1000

On Tuesday, April 29, 2003, at 12:39  PM, Anurag Khare wrote:

So one thing is sure that relationship is working and there is data relating to key....I do not know why prefetch option is not working..

Are you certain that the relationship isn't being prefetched and that the problem isn't due to an improperly-configured UI?


My next problem is how to use this NSArray which I am getting through
relationship to display data through WORepetition as it is throwing class cast exception..

If EntityA's WORepetition's "item" key is bound to entityAItem, EntityB's WORepetition's "list" should be bound to entityAItem.entityBs (assuming that the to-many relationship is EntityA.entityBs). This shouldn't require any code and therefore no casting unless there's more going on than I understand.


Aloha,
Art
_______________________________________________
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.


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
_______________________________________________
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: to-many relationship fetching
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: MySql 4.0.12 Connection to WebObjects ... need URL info please
  • Next by Date: Re: to-many relationship fetching
  • Previous by thread: Re: to-many relationship fetching
  • Next by thread: Re: to-many relationship fetching
  • Index(es):
    • Date
    • Thread