• 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: Default value for attribute in EntityModeler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default value for attribute in EntityModeler?


  • Subject: Re: Default value for attribute in EntityModeler?
  • From: John Huss <email@hidden>
  • Date: Mon, 4 Oct 2010 13:50:34 -0500

But this requires defining the default by hand in the migration, not in the model, right?

John

On Mon, Oct 4, 2010 at 12:38 PM, Ramsey Gurley <email@hidden> wrote:

On Oct 4, 2010, at 12:40 PM, John Huss wrote:

My wish is that in EntityModeler "Generate SQL" would also include the default values, and "Generate Migration" too.

John

Most of the migration methods have a method setting the default value.  They set the default value using the key er.extensions.eoattribute.default in the userInfo dictionary in the model.  That value produces the default value in the creation clause sent to the database, but it requires plugin support.

Ramsey



 _______________________________________________
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: Default value for attribute in EntityModeler?
      • From: Ramsey Gurley <email@hidden>
References: 
 >Re: Default value for attribute in EntityModeler? (From: John Huss <email@hidden>)
 >Re: Default value for attribute in EntityModeler? (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: Chuck Needs a Favour
  • Next by Date: Re: Default value for attribute in EntityModeler?
  • Previous by thread: Re: Default value for attribute in EntityModeler?
  • Next by thread: Re: Default value for attribute in EntityModeler?
  • Index(es):
    • Date
    • Thread