• 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
AW: InsertObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: InsertObject


  • Subject: AW: InsertObject
  • From: "Weide, Björn" <email@hidden>
  • Date: Wed, 30 May 2007 11:10:48 +0200

Hi,

You could use EOUtilities.createAndInsertInstance to create the objects and
insert them immediatly in the EDC. Note that you should never modify objects
that are not inserted in an EDC, so you should always insert them as soon as
possible.

Ciao,
Bjoern

-----Ursprüngliche Nachricht-----
Von: webobjects-dev-bounces+bw=email@hidden
[mailto:webobjects-dev-bounces+bw=email@hidden] Im Auftrag von
Frederic JECKER
Gesendet: Mittwoch, 30. Mai 2007 11:00
An: WebObjects Dev Apple
Betreff: InsertObject

Moin list,

Could someone answer the following question? :

I have two objects A and B, each extending EOGenericRecord.
Object A has a field of type B.
Now, when I create a new Object A which embeds a new object B, before
performing an EditingContext.saveChanges I must insert each object
separately in my editingContext:
myContext.insertObject(B);
myContext.insertObject(A);
myContext.saveChanges();
.... which is rapidly over-complicated when saving complex object-graphs

Now, in order to perform the saveChanges in a more elegant way, can someone
tell me if there is a method to override, method called by
EditingContext.saveChanges, in which I could in each EOGenericRecord do the
insertObject work ?

Thanks

Fj


 _______________________________________________
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
 _______________________________________________
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: Nested Editing Contexts
  • Next by Date: Re: [ANN] WebObjects 5.3.3 on FreeBSD 6.x deployment guide
  • Previous by thread: Re: Nested Editing Contexts
  • Next by thread: checkbox selected
  • Index(es):
    • Date
    • Thread