• 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: newEO.localInstanceIn(localEditingContext)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newEO.localInstanceIn(localEditingContext)


  • Subject: Re: newEO.localInstanceIn(localEditingContext)
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 26 Mar 2009 15:27:38 -0400

Normally I get the error:

java.lang.IllegalStateException: You attempted to localInstance <com.model.Foo pk:"null">, which has not yet committed.

But I think that it should be allowed, even if that requires that I get a primary key for localFoo.
It is not allowed ... An editing context specifies a transaction, and you're trying to create an EO in two transactions at once, which doesn't really make sense, not to mention what does it mean if you have relationships to other objects (which could also be new).

ms
 _______________________________________________
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: 
 >newEO.localInstanceIn(localEditingContext) (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: newEO.localInstanceIn(localEditingContext)
  • Next by Date: Re: Mixing D2JC with Non-Direct Java Client
  • Previous by thread: newEO.localInstanceIn(localEditingContext)
  • Next by thread: Re: newEO.localInstanceIn(localEditingContext)
  • Index(es):
    • Date
    • Thread