• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Framework EOModel Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Framework EOModel Question (From: LD <email@hidden>)
 >Re: Framework EOModel Question (From: Chuck Hill <email@hidden>)
 >Re: Framework EOModel Question (From: LD <email@hidden>)
 >Re: Framework EOModel Question (From: Chuck Hill <email@hidden>)
 >Re: Framework EOModel Question (From: LD <email@hidden>)
 >Re: Framework EOModel Question (From: Chuck Hill <email@hidden>)
 >Re: Framework EOModel Question (From: LD <email@hidden>)
 >Re: Framework EOModel Question (From: Anjo Krank <email@hidden>)

  • Prev by Date: Re: Framework EOModel Question
  • Next by Date: Re: ERXEC and methods getting called without lock
  • Previous by thread: Re: Framework EOModel Question
  • Next by thread: Installing Project Wonder
  • Index(es):
    • Date
    • Thread