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

Re: localInstanceOfObject


  • Subject: Re: localInstanceOfObject
  • From: Aaron Rosenzweig <email@hidden>
  • Date: Thu, 16 Jul 2015 13:56:31 -0400

Hi Roger,

I skimmed your post.

You cannot local instance an unsaved object. You just cannot do it. Don’t try anything clever… the EO is tied to a unit of work (editing context) and without ever being saved it simply is not possible to local instance it.

You may have to use the “memento” pattern for your particular case. Make a simple java object, nothing about DB persistence… and then make it an EO only after it has passed muster.
Aaron Rosenzweig / Chat 'n Bike
e:  email@hidden  t:  (301) 956-2319
Chat 'n Bike Chat 'n Bike
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
  • Follow-Ups:
    • Re: localInstanceOfObject
      • From: Chuck Hill <email@hidden>
References: 
 >localInstanceOfObject (From: Roger Perryman <email@hidden>)

  • Prev by Date: localInstanceOfObject
  • Next by Date: Re: localInstanceOfObject
  • Previous by thread: localInstanceOfObject
  • Next by thread: Re: localInstanceOfObject
  • Index(es):
    • Date
    • Thread