• 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: Opinion on ERXKey type parameterization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opinion on ERXKey type parameterization


  • Subject: Re: Opinion on ERXKey type parameterization
  • From: Ricardo Parada <email@hidden>
  • Date: Tue, 28 Mar 2017 00:35:46 -0400

I have wondered about that too but never put any energy into changing it or thinking about what would happen if I changed it.

Regards,
Ricardo

> On Mar 27, 2017, at 8:11 PM, Matthew Ness <email@hidden> wrote:
>
> Hi Paul and list,
>
> I know when I make custom keys which are to-many, I specify the
> collection in the key:
>
> public static final ERXKey<NSArray<Bar>> BARS = ...
>
> The template could express this also, but I've never made that change.
>
> --
> Matt
> http://logicsquad.net
>
>
>> On Mon, Mar 27, 2017, at 03:10 PM, Paul Hoadley wrote:
>> Hello,
>>
>> Say I have a ‘Foo' entity, with a to-many relationship ‘bars’ to a ‘Bar’
>> entity. Every Velocity generation template I’ve ever seen will output
>> something like:
>>
>>  public static final ERXKey<Bar> BARS = new ERXKey<Bar>(“bars”);
>>
>> or, even better:
>>
>>  public static final ERXKey<Bar> BARS = new ERXKey<Bar>(“bars”,
>>  ERXKey.Type.ToManyRelationship);
>>
>> But shouldn’t ERXKey there be parameterized as ERXKey<NSArray<Bar>>?
>> Admittedly, I’m struggling to see where it would make a huge
>> difference—but just for completeness?
>>
>>
>> --
>> Paul Hoadley
>> http://logicsquad.net/
>>
>
> _______________________________________________
> 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

 _______________________________________________
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


References: 
 >Opinion on ERXKey type parameterization (From: Paul Hoadley <email@hidden>)
 >Re: Opinion on ERXKey type parameterization (From: Matthew Ness <email@hidden>)

  • Prev by Date: Re: Opinion on ERXKey type parameterization
  • Next by Date: Re: Opinion on ERXKey type parameterization
  • Previous by thread: Re: Opinion on ERXKey type parameterization
  • Next by thread: Re: Opinion on ERXKey type parameterization
  • Index(es):
    • Date
    • Thread