Re: Framework EOModel Question
Re: Framework EOModel Question
- Subject: Re: Framework EOModel Question
- From: Giorgio Valoti <email@hidden>
- Date: Fri, 5 Aug 2005 10:47:02 +0200
On 05/ago/05, at 09:03, Anjo Krank wrote:
Am 05.08.2005 um 08:58 schrieb LD:
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 ;-)
You could try and fake the auto-increment by adding a trigger that
gets the value from a serial if the original value was null. That
way your non-WO programs should still work.
You'd need to get back the last value by selecting max(pk) from
table, though...
Unless some other rows were inserted in the meantime; not really
probable, but still…
I'm obviously missing something but why don't use sequences, i.e.
just the way the plugin does?
Best regards,
--
Giorgio Valoti
--------------
_______________________________________________
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