• 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: Generics in WO - Writing accessors for to-many relationship?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generics in WO - Writing accessors for to-many relationship?


  • Subject: Re: Generics in WO - Writing accessors for to-many relationship?
  • From: Ricardo Parada <email@hidden>
  • Date: Thu, 1 Nov 2007 19:27:32 -0500


On Nov 1, 2007, at 5:32 PM, Mike Schrag wrote:

1) You should really be using EOGenerator and not writing this by
hand, it's very error prone and it's asking for problems

Thanks Mike... I'll take a look at using EOGenerator. Can you believe I've been coding since EOF 1 and never used EOGenerator. I know it is very popular so I guess I'm one of the exceptions. :-)


I assume the place to start is http://wiki.objectstyle.org/confluence/display/WOL/Generating+EO+Java+Classes right?

2) You should really base those EOGenerator templates off of one of
the existing models

Are there templates for WO 5.4?

3) You never want to call setRecords with an array

Not sure what you mean here.

4) I don't believe NSArray.EmptyArray is genericized properly (I'm not
sure it is in Project Wonder, either). The proper definition should be:


  @SuppressWarnings("unchecked")
  public static <T> NSArray<T> emptyArray() {
    return NSArray.EmptyArray;
  }

at which point you would use:

NSArray<String> emptyStringArray = NSArray.<String>emptyArray();

In the absence of that definition, you will need to cast (and add a
warning ignore).

Cool. Thanks.

:-)


_______________________________________________ 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
  • Prev by Date: Re: WOLips nightly: generated SQL missing spaces
  • Next by Date: Re: WOLips nightly: generated SQL missing spaces
  • Previous by thread: Re: Generics in WO - Writing accessors for to-many relationship?
  • Next by thread: Starting new Wonder Application
  • Index(es):
    • Date
    • Thread