Re: Framework EOModel Question
Re: Framework EOModel Question
- Subject: Re: Framework EOModel Question
- From: Chuck Hill <email@hidden>
- Date: Thu, 4 Aug 2005 22:14:13 -0700
On Aug 4, 2005, at 6:06 PM, LD wrote:
because the EOModels in the framework are currently tied to postgres
specific column attribute types. Any tips on making the models db
agnostic?
EOPrototypes, as Kieran pointed out. A model without prototypes is,
um, dumb.
Point taken. I'll get around to utilising PW... just getting as
comfortable as I can with WO first.
Although Project Wonder is, erm, wonderful, there is no need to use it
to reap the benefits of prototypes. EOPrototypes are part of EOF.
A reusable framework without prototypes is not reusable. See
Practical WebObjects pages 45 - 55 for a discussion of this and code.
There is some very superficial discussion in the EOModeler docs.
Cheers. The discussion in the book was helpful... on towards utilising
EOJDBCPrototypes entity/models.
Excellent.
I'm utilising the postgres 'serial' type for auto-incrementing
primary keys...
I can't see how EOF is going to be happy about that.
Hence the use of the PostgresqlPlugIn.framework. Works well (with my
slight alteration to the plugin).
If anyone's using PostgreSQL successfully without the plugin, I'm all
ears!
I think you might be missing something. EOF is going to generate the
keys for you. It is not going to use the autoincrement feature.
PostgreSQL probably does nothing if the key is not null. Just make
then a regular integer / long column. Keys generated on the DB server
side and EOF are not very compatible.
Regards,
Chuck
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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