RE: Generating EO Java Files in xcode 2.1
RE: Generating EO Java Files in xcode 2.1
- Subject: RE: Generating EO Java Files in xcode 2.1
- From: "Bruce Fancher" <email@hidden>
- Date: Mon, 20 Jun 2005 23:08:56 -0400
Well, they aren't mutally exclusive. You can generate the class, delete all
the accessors and then just add your custom logic to it. Still faster than
creating the new class by hand. I think static typing is one of the most
overrated features in the history of programming, but I guess you can always
make the case that it's useful letting the compiler catch things like
setNmae(...), whereas takeValueForKey("Bob", "nmae") wouldn't be caught
until runtime.
Bruce
-----Original Message-----
From: webobjects-dev-bounces+bruce=email@hidden
[mailto:webobjects-dev-bounces+bruce=email@hidden] On
Behalf Of Tonny Staunsbrink
Sent: Monday, June 20, 2005 12:06 PM
To: email@hidden
Subject: Re: Generating EO Java Files in xcode 2.1
This won't help you, but as far I can see the embedded EO editor is crippled
compared to EOModeller, it doesn't support inheritance either. You can set a
parent, but the editor won't store. Actually you risk having yor model wiped
for attribute settings. I think the moral is: Use EOModeller.
If you wan't to generate class files for entities, take a look at
eogenerator without EOModeller.
http://www.rubicode.com/Software/EOGenerator/
My preferences would be to skip autogenerating code and use the design
pattern introduced with CoreData. There yor customized object subclasses
ManagedObject (which is kinda equal to EOGenericRecord) and only adds new
logic. Attributes access is handled purely through key/value coding.
Regards
Tonny
On Jun 20, 2005, at 5:57 PM, Colin wrote:
> Does anyone know how to generate Java Files from the new EO Model
> tool that shiped with xcode 2.1?
>
> The corresponding 'Generate Database schema' appears to be there
> and works fine... but I can't figure out how to generate my Java
> Files for WebObjects development...
>
> Cheers!
> -c
>
>
>
>
> ________________________________________________________________
> Sent via the WebMail system at warp9software.com
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40phonofile.dk
>
> 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
_______________________________________________
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