• 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: Updating EO by inserting new EO and archiving the old EO - any suggestions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating EO by inserting new EO and archiving the old EO - any suggestions?


  • Subject: Re: Updating EO by inserting new EO and archiving the old EO - any suggestions?
  • From: Jeffrey Simpson <email@hidden>
  • Date: Mon, 25 Jan 2010 10:02:01 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Updating EO by inserting new EO and archiving the old EO - any suggestions?

We tried different things but in the end we used a trigger.  If the archive is for auditing  I think a database trigger is best.  No need to clutter up you application with code to make an audit trail.

Message: 9
Date: Mon, 25 Jan 2010 16:32:23 +0800
From: Amiel Montecillo <email@hidden>
Subject: Updating EO by inserting new EO and archiving the old EO -
       any     suggestions?
To: WebObjects-Dev Mailing List List <email@hidden>
Message-ID:
       <email@hidden">email@hidden>
Content-Type: text/plain; charset="iso-8859-1"

Hi List,

I am having a dilemma on how to best implement this kind of scenario.

I need the update process of an EO by creating an new EO with the updated
values and archiving the old one. This EO has quiet a few to-many
relationships that needs to be archived as well.

I am thinking of copying the existing values along with the relationship
values to an NSDictionary and tie that to the form. Once the save action
fires, inspect if there are any changed values and create a new EO with the
updated values and archive the old one.

Can anyone suggest a better way of handling this?

Thanks,
Amiel


Jeffrey Simpson
Senior Software Engineer
IT
Youth For Understanding USA
Telephone: 240.235.2144
Toll Free: 1.800.424.3691
Fax: 240.235.2174
Website:
www.yfu-usa.org 


         
Youth For Understanding (YFU) prepares young people for their responsibilities and opportunities in a changing, interdependent world.


Join YFU USA on Facebook, Twitter and YouTube
  


 _______________________________________________
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

  • Prev by Date: Re: recognising dead instances
  • Next by Date: Sorting Nulls with Oracle
  • Previous by thread: Re: Error Message in Eclipse
  • Next by thread: Sorting Nulls with Oracle
  • Index(es):
    • Date
    • Thread