• 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: Inherited Relationships using Different Destinations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inherited Relationships using Different Destinations


  • Subject: Re: Inherited Relationships using Different Destinations
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 4 Sep 2008 18:01:18 -0400

Yeah, see, that's what I _thought_ but then when I tried to override:

public NSArray<LotCode> lotCodes() ... in my Part class

with

public NSArray<ManufacturedBatch> lotCodes() in my Intermediate class (subclass of Part)
Yes, this is because while ManufacturedBatch is a subclass of LotCode, unlike the case of java arrays, NSArray<ManufacturedBatch> is not a "subclass" of NSArray<LotCode>, so you don't ACTUALLY have covariant return types here. If you were returning a to-one relationship, this would work as expected.

ms

_______________________________________________
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: Inherited Relationships using Different Destinations
      • From: Florijan Stamenkovic <email@hidden>
    • Re: Inherited Relationships using Different Destinations
      • From: Chuck Hill <email@hidden>
References: 
 >Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: Mike Schrag <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: new Session being created
  • Next by Date: Re: How to use ERJgroupsSynchronizer framework without Wonder?
  • Previous by thread: Re: Inherited Relationships using Different Destinations
  • Next by thread: Re: Inherited Relationships using Different Destinations
  • Index(es):
    • Date
    • Thread