• 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: Prototypes primer needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prototypes primer needed


  • Subject: Re: Prototypes primer needed
  • From: "Sigurður E. Vilhelmsson" <email@hidden>
  • Date: Tue, 14 Aug 2007 11:22:40 +0000

2007/8/11, Sigurður E. Vilhelmsson <email@hidden>:
> In setting up my EOModel, I'd like to use prototypes.  However, as
> always, I am a bit lost in getting them to work.
>
> In my connection configuration I have selected the prototype
> EOJDBCFrontBasePrototypes.  After creating an entity, I create my
> attributes specifying the prototype from the dropdown menu (i.e.
> varchar1000 etc).
>
> However, the classes generated don't incorporate the data type
> specified in the model, i.e. instead of:
>
>    public  string answer() {
>         return (String)storedValueForKey("answer");
>     }
>
> I get
>
>    public  answer() {
>         return ()storedValueForKey("answer");
>     }
>
> What am I missing here?
>
> And on the subject, how do I go about adding my own prototypes to the model?
>
> Im using latest stable Eclipse and WOLips and a WOnderApplication.
>
> Best regards,
> Siggi
>

Just to follow up on my own trouble.

I had added the ERProtoypes framwork, allowing me to select the
different prototypes from the popup in Entity Modeler.  However, I had
not added the EOModel from the ERPrototype framework to the Referenced
Models box in my eogenerator file.  After doing that, the classes are
created properly.

Best regards,
Siggi
 _______________________________________________
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: 
 >Prototypes primer needed (From: "Sigurður E. Vilhelmsson" <email@hidden>)

  • Prev by Date: Re: [ANN] Maven WOCreator Plug-in
  • Next by Date: Re: Common application for different database users
  • Previous by thread: Prototypes primer needed
  • Next by thread: Newbie - Running some Wonder examples in Eclipse
  • Index(es):
    • Date
    • Thread