• 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: multi user increment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multi user increment


  • Subject: Re: multi user increment
  • From: Geoff Hopson <email@hidden>
  • Date: Mon, 6 Feb 2006 14:56:44 +0000

Or (non-EOF solution)...
Write a stored procedure to generate it in the DB, triggered on insert. Slap a unique constraint on column, catch exception and deal with.

If you need this number in your EOF stack, don't forget to setRefreshesFetchedObjects on the fetchspec (or something like that).

Might work...
Geoff


On 06/02/06, Gino Pacitti <email@hidden> wrote:
Hi All

Any thoughts on how to address this problem

I have a multi instance app that connects to a single data store.

For any user, across the instances, I need to increment a numerical
value newly for each new registered user.

This then has to be saved back to the data store and for there to be
no conflicts with similar values for new registrants...

Any ideas or have I missed something easy here..

Gino


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: email@hidden

 _______________________________________________
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: 
 >multi user increment (From: Gino Pacitti <email@hidden>)

  • Prev by Date: Re: multi user increment
  • Next by Date: Re: multi user increment
  • Previous by thread: Re: multi user increment
  • Next by thread: Re: multi user increment
  • Index(es):
    • Date
    • Thread