Re: Default value for attribute in EntityModeler?
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