Thanks for your reply David. 

On 2012-11-27, at 2:02 PM, David Aspinall <[email protected]> wrote:

> Hi David,
> 
> I'm not 100% sure what the issue you are experiencing is, but when I 
> experimented with it a little I noticed some issues.  Specifically I added a 
> new attribute to the partial model in wonder/Examples/ERXPartials and when I 
> had it generate the migration the code looked like
> 
>       partial_EmployeePersonTable.newBooleanColumn("dataVerified", true);
> 
> Whats odd is the prototype specifies it as external type VARCHAR for this 
> 'newBooleanColumn'

What you're seeing is expected behaviour I think?

        /**
         * Returns a new varchar(5) boolean column.  See newColumn(..) for the 
full docs.
         * 
         * @param name the name of the column
         * @param allowsNull if true, the column will allow null values
         * @return the new ERXMigrationColumn
         * @throws SQLException if the column cannot be created 
         */
        public ERXMigrationColumn newBooleanColumn(String name, boolean 
allowsNull) throws SQLException {
                return newColumn(name, Types.VARCHAR, 5, 0, 0, allowsNull, 
null);
        }


> 
> <PastedGraphic-2.tiff>
> 
> That's as far as I've gotten looking at this, but if this is the issue then 
> it has nothing to do with ERXPartials, the prototype produced the same code 
> for the main model.

It's definitely a problem with Partials. As Paul says changing the prototype to 
varchar10 or intBoolean seems to allow the migration to happen.

>  
> 
> Maybe you could include more details about the issue you are up against.  
> Logs, backtrace, code ... something

I'll dig into it some more since it seems that there may actually be an issue.

David

> 
> Thanks
> David
> 
> 
> 
> On 2012-11-27, at 4:17 PM, [email protected] wrote:
> 
>> Hi all,
>> 
>> Using ERXPartials we're seeing errors using the boolean prototype in the 
>> Partial entity migration.
>> 
>> Here's an example: propertyKey: dataVerified; type: NullPropertyException;
>> 
>> Switching the prototype to varchar10 makes the problem go away.
>> 
>> Has anyone else seen problems with the boolean prototype using Partials and 
>> migrations?
>> 
>> thanks,
>> David
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/daspinall%40global-village.net
>> 
>> This email sent to [email protected]
> 
> --
> David Aspinall
> Senior IT Consultant
> Global Village Consulting Inc.
> E: [email protected]
> P: 1-647-927-7442
> 
> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
> Companies in B.C! 
> 
> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
> Canada’s Fastest-Growing Companies by PROFIT Magazine!
> 
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to