• 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: Foreign keys and database operation ordering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Foreign keys and database operation ordering


  • Subject: Re: Foreign keys and database operation ordering
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 11 Feb 2009 17:49:58 -0800


On Feb 11, 2009, at 5:32 PM, Lachlan Deck wrote:

Hi Chuck,

On 12/02/2009, at 5:28 AM, Chuck Hill wrote:

Use Wonder.  Set main() in Application up like this:

public static void main(String argv[])
{
ERXDatabaseContextMulticastingDelegate.addDefaultDelegate(new ERXEntityDependencyOrderingDelegate());
// Ensure that we get proper error pages when an exception happens in a direct action.
// This must go here and not in the constructor or it won't work.
System.setProperty("WODisplayExceptionPages", "true");
WOApplication.main(argv, Application.class);
}

Is it too late doing this in installPatches()?


I have no idea. It has to happen early, before EOF gets initialized. I don't extend ERXApplication, so you pudding eaters might have a better way. You can also force it in too. This works for me and it is one line, so I use it.



Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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: 
 >Foreign keys and database operation ordering (From: Cedarstone <email@hidden>)
 >Re: Foreign keys and database operation ordering (From: Chuck Hill <email@hidden>)
 >Re: Foreign keys and database operation ordering (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Foreign keys and database operation ordering
  • Next by Date: Re: AJAX and WOForm (ERXForm)
  • Previous by thread: Re: Foreign keys and database operation ordering
  • Next by thread: Re: Foreign keys and database operation ordering
  • Index(es):
    • Date
    • Thread