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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to