• 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
Fetching abstract entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fetching abstract entity


  • Subject: Fetching abstract entity
  • From: Jean-François Veillette <email@hidden>
  • Date: Fri, 30 May 2008 14:17:20 -0400

I have 2 models, one which contain a set of abstract eoentity, another one which contain a set of concret eoentity (subclasses of the abstract set).

It was working just right, but suddently after reinstalling one of the framework, it just stopped working.  I can't make it work again.
Whenever I fetch an abstract entity (assuming, I will get objects of the concrete entity), it now return me an object of the abstract entity type.

Details ...
A - abstract eoentity name
CA - java classe for eoentity 'A'
B - concrete eoentity name, sub-entity of 'A'
CB - java classe of 'B'

            NSMutableDictionary dict = new NSMutableDictionary();
            dict.takeValueForKey(k1, "key1");
            dict.takeValueForKey(k2, "key2");
            expectCBInstance = (CB) EOUtilities.objectMatchingValues(ec, "A", dict);

But EOUtilities return me "CA" instances.
Any idea why EOF fetch abstract entity and not the concrete one ?

Thanks,

- jfv

 _______________________________________________
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

  • Follow-Ups:
    • Re: Fetching abstract entity
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Compiler Warnings for NSSelector
  • Next by Date: Re: Fetching abstract entity
  • Previous by thread: Compiler Warnings for NSSelector
  • Next by thread: Re: Fetching abstract entity
  • Index(es):
    • Date
    • Thread