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 protected]> 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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
>> 
>> This email sent to [email protected]

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

This email sent to [email protected]

Reply via email to