• 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: Looking for an update foo set bar = bar + 1 solution for WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for an update foo set bar = bar + 1 solution for WO


  • Subject: Re: Looking for an update foo set bar = bar + 1 solution for WO
  • From: Randy Wigginton <email@hidden>
  • Date: Fri, 17 Aug 2007 10:15:46 -0700

I've implemented this with raw SQL; I could not find an easier way. In particular, I could not find any manner in which WO helped with this use case. If you happen to be using MySQL, the last_insert_id() function is your friend. If Oracle, use the "returns" sql.



On Aug 16, 2007, at 2:53 PM, Chuck Hill wrote:

I recall someone making something that did this, but now I can't find it. I don't even recall how it worked. What it did was allow WO to update an attribute of a entity using bar = bar + 1 instead of bar = 7 so that updates from multiple sources would not step on each other.

Does this sound familiar to anyone?

Thanks!

Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific 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:
40gmail.com


This email sent to 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: 
 >Looking for an update foo set bar = bar + 1 solution for WO (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: How do I get EO's instantiated with dynamic class?
  • Next by Date: javaeoutil question
  • Previous by thread: Re: Looking for an update foo set bar = bar + 1 solution for WO
  • Next by thread: How do I get EO's instantiated with dynamic class?
  • Index(es):
    • Date
    • Thread