• 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
deferrable initially deferred
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

deferrable initially deferred


  • Subject: deferrable initially deferred
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Mon, 23 Feb 2009 18:12:25 -0500

Hi All,

Does anybody know how to create a migration that sets the foreign key constraints to be deferred initially?

For example, entity modeler in WOLips has a button to generate the migration code.  In that code the code that sets the constraints looks like this:

clientTable.addForeignKey("address_id", "address", "address_id");

But then when I look in FrontBaseManager the foreign key constraint is not being deferred.  So my insert statement into the client table generates an error because the client object is inserted into the database before the address object.

Thanks,
Ricardo

 _______________________________________________
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: deferrable initially deferred
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: Help with Thread - Long requests
  • Next by Date: Re: deferrable initially deferred
  • Previous by thread: Re: Help with Thread - Long requests
  • Next by thread: Re: deferrable initially deferred
  • Index(es):
    • Date
    • Thread