Re: Framework EOModel Question
Re: Framework EOModel Question
- Subject: Re: Framework EOModel Question
- From: LD <email@hidden>
- Date: Fri, 5 Aug 2005 16:58:37 +1000
Hi,
On 05/08/2005, at 3:14 PM, Chuck Hill wrote:
On Aug 4, 2005, at 6:06 PM, LD wrote:
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.
Yes, I think my original decision to utilise the 'serial' type was
when I had thought about the possibility of having an additional Perl/
DBI/CGI front-end to the db (i.e., I'd built a custom Perl Component-
based module called WebModules (:-)) (subclassing CGI::Prototype)
that was reasonably useful.
That idea's gone out the window for now that I'm further into WO. So,
the need to utilise the auto-incrementing serial type is no longer
necessary but, nevertheless, a convenience for now. I can't fix every
imperfect decision at once ;-)
Thanks again for the advice...
with regards,
--
LD
_______________________________________________
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