Re: Inherited Relationships using Different Destinations
Re: Inherited Relationships using Different Destinations
- Subject: Re: Inherited Relationships using Different Destinations
- From: Florijan Stamenkovic <email@hidden>
- Date: Fri, 05 Sep 2008 10:53:10 -0400
But you can override a method that returns NSArray<? extends
ManufacturedBatch> with one that returns NSArray<LotCode>. So, if
done this way you could have the relationships declared in all the
Java classes.
Still trying to figure out how Dave actually modeled this... Had no
idea you could "override" relationship properties (destination) in
subentities...
F
On Sep 04, 2008, at 18:01, Mike Schrag wrote:
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.
_______________________________________________
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