Re: Entity Modeler, attributes default value for migrations

2012-04-19 Thread Theodore Petrosky
rInfo = {default = 0; }; thank you John for pointing out the zero. Ted --- On Wed, 4/18/12, Chuck Hill wrote: > From: Chuck Hill > Subject: Re: Entity Modeler, attributes default value for migrations > To: "John Huss" > Cc: "Theodore Petrosky" , "WebObjects-Dev

Re: Entity Modeler, attributes default value for migrations

2012-04-19 Thread Theodore Petrosky
I didn't understand 'edit manually' until I used Chuck's method of adding a "User Info" entry in Entity Modeler. Then I used TextMate on the plist and understood. Thanks, Ted --- On Wed, 4/18/12, John Huss wrote: From: John Huss Subject: Re: Entity Modeler

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread Theodore Petrosky
quot;isfiled", false, er.extensions.foundation.ERXValueUtilities.booleanValue("false")); Obviously, it is just fine, just a little wordy. Thank you, Ted --- On Wed, 4/18/12, Chuck Hill wrote: > From: Chuck Hill > Subject: Re: Entity Modeler, attributes default value for migrations &g

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread Chuck Hill
Hand edit? Eeew! :-P Select the property and then the User Info tab in the Properties inspector. Click where it says (0 items) and hit Enter. Edit the name and value. Chuck On 2012-04-18, at 1:07 PM, John Huss wrote: > You have to add it manually into the userInfo dictionary by editing

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread David Holt
Thanks John! Learn something every day :-) David On 2012-04-18, at 1:42 PM, John Huss wrote: > I was hoping there was a box in Entity Modeler that said, "Default Value". > > There is no box, but if you hand-edit the file like I said it will do what > you want. > _

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread John Huss
> > I was hoping there was a box in Entity Modeler that said, "Default Value". > There is no box, but if you hand-edit the file like I said it will do what you want. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailin

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread Theodore Petrosky
box in Entity Modeler that said, "Default Value". there are two signatures for newFlagBooleanColumn newFlagBooleanColumn(name, allowNull)newFlagBooleanColumn(name, allowNull, defalutValue) newIntegerColumn is the same (two signatures) Ted --- On Wed, 4/18/12, David Holt wrote: From: Davi

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread David Holt
Hi Ted, You can use EOF to set your values in migrations, so I guess you could set your default values in your entity? See Mike's example app SecretPal and the SecretPal0 migration postUpgrade method. That might give you what you are looking for. Also just recently someone (Ramsey?) posted th

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread John Huss
You have to add it manually into the userInfo dictionary by editing by model with a text editor. For example, for the ATTRIBUTE called "deleted": ... { columnName = "scp_deleted"; name = deleted; prototypeName = intBoolean; *userInfo = {defa

Entity Modeler, attributes default value for migrations

2012-04-18 Thread Theodore Petrosky
When I create an attribute in Entity Modeler, and create the migrations, it does a beautiful job. creativeBriefTable.newFlagBooleanColumn("isfiled", false); and I know I can add a default value here creativeBriefTable.newFlagBooleanColumn("isfiled", false, false); problem is that if I go back