• 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: Timestamps getting updated unexpectedly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timestamps getting updated unexpectedly


  • Subject: Re: Timestamps getting updated unexpectedly
  • From: Gary Teter <email@hidden>
  • Date: Thu, 27 Sep 2007 08:56:04 -0700

Be sure to call super.awakeFromInsertion(ec) before doing anything else in this method.

On Sep 26, 2007, at 10:20 PM, Tarun Reddy wrote:

When a new idea is created I have the following method

	public void awakeFromInsertion(EOEditingContext ec) {
		setAvgRating(0.0);
		setNumRatings(0);
		setProposedStatus();
		setSubmitDate(new NSTimestamp());
	}


-- WireHose: Smart metadata and personalization for WebObjects. http://wirehose.com/


_______________________________________________ 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
  • Follow-Ups:
    • Re: Timestamps getting updated unexpectedly
      • From: David LeBer <email@hidden>
References: 
 >Timestamps getting updated unexpectedly (From: Tarun Reddy <email@hidden>)

  • Prev by Date: Re: Stale data
  • Next by Date: Re: Timestamps getting updated unexpectedly
  • Previous by thread: Re: Timestamps getting updated unexpectedly
  • Next by thread: Re: Timestamps getting updated unexpectedly
  • Index(es):
    • Date
    • Thread