Re: Mixing and matching prototypes
Re: Mixing and matching prototypes
- Subject: Re: Mixing and matching prototypes
- From: David Avendasora <email@hidden>
- Date: Wed, 16 Apr 2014 23:11:48 -0400
Hey Ted,
Create a new EOModel named anything you want, I suggest something with “Prototypes” in the name, but really it can be anything.
The key is having one Entity named EOJDBCPrototypes that has default values that should work for any JDBC database. If you don’t have that, I don’t think EOF will recognize the Model as being a prototypes model - but I may be misremembering something I read in the EOModeler documentation 10+ years ago.
Anyway, you now want to create one prototype “Entity" for each database platform you use - named just like they are in erprototypes:
EOJDBCPostgresqlPrototypes
EOJDBCOraclePrototypes
EOJDBCFrontBasePrototypes
etc.
Then you can copy-paste any prototype “attributes" from the erprototypes model and modify them as you need (or to fix them). Make sure you create equivalent ones in each of your prototype “Entities”.
Just keep in mind that if you do this, and you also use any other models that make use of erprototypes, you will run into the problem Hugi is having. You will need to use the properties in ERXModelGroup to tell EOF which prototypes to use with which EOModel, otherwise either your model or the wonder model will complain that it’s prototypes are missing.
Good luck! I’l try to turn this into a Wiki entry in the next couple days, but this should get you there!
Sir Dave
On Apr 16, 2014, at 6:08 PM, Theodore Petrosky <email@hidden> wrote:
> So, what file do I need to copy/edit to create my own prototypes?
—————————————————————————————
WebObjects - so easy that even Sir Dave Avendasora can do it!™
—————————————————————————————
Sir David Avendasora
Senior Software Abuser & Sock Chopper
Nekesto, Inc.
_______________________________________________
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