• 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: Tracking Fields and EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking Fields and EOF


  • Subject: Re: Tracking Fields and EOF
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Mon, 13 Jun 2005 16:43:52 +0200


On Jun 13, 2005, at 16:13, WebObjects Lover wrote:

Hi there,

I need to add tracking fields to my database that
track when a record was last updated and when a record
was added.  I believe I can use the awakeFromInsertion
method on EOCustomObject (in the superclass for all my
EOs) to set the time the record was added but I'm a
little confused how I set the date last modified time
automatically?  Or, is this something I need to set on
the EO before I save changes?  Thanks...


Think that a better idea is to subclass EOEditingContext, because then you can control that only when the inserted records (or changes) are really sent to the database, you set your tracking info. See, of course, Practical WebObjects.


Flor

_______________________________________________
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: 
 >Tracking Fields and EOF (From: WebObjects Lover <email@hidden>)

  • Prev by Date: WO and CoreData?
  • Next by Date: Re: WO and CoreData?
  • Previous by thread: Re: Tracking Fields and EOF
  • Next by thread: RE: Tracking Fields and EOF
  • Index(es):
    • Date
    • Thread