Re: doubleNumber, newDoubleColumn
Re: doubleNumber, newDoubleColumn
- Subject: Re: doubleNumber, newDoubleColumn
- From: Jesse Tayler <email@hidden>
- Date: Sat, 8 Jan 2011 12:11:56 -0500
Clearly seems to be a hole in the templates.
I basically just replaced with a zero for each, which I think means the Double should be as long as possible.
So, a quick fix to my EOGen is to comment out the attachment lines, and replaces these forgotten template items with zero.
I'm certain to have to revisit this again, anyone else aware of either issue?
On Jan 8, 2011, at 4:34 AM, Farrukh Ijaz wrote:
> I faced the same problem few months ago. I think the reason is we can't set the precision for double types in Eomodel. What you can do is find /replace the ${attribute.precision} and ${attribute.scale} with your desired numeric values in the generated migration classes.
>
> I don't remember but there may be a way to set this in the Eomodel using attributes userInfo dictionary.
>
> HTH.
>
> Farrukh
>
> Jesse Tayler <email@hidden> wrote:
>
>>
>> Is there something wrong with the prototype for MSQL if I get a EOGen result like this:
>>
>> questionTable.newDoubleColumn("lat", ${attribute.precision}, ${attribute.scale}, true);
>>
>> I'm adding lat/lon for storing geo numbers, I used the doubleNumber prototype but it seems to want something more?
>>
>> I also notice that ERAttachments want to generate a stub to insert a reverse relationship which I don't think I asked for, and fails, I can comment it out, but I don't know where it comes from.
>>
>> userTable.addForeignKey("posterId", "ERAttachment", "id");
>>
>>
>> _______________________________________________
>> 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
_______________________________________________
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