Re: Timestamps getting updated unexpectedly
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