Re: EOGenerator + BigDecimal prototypes
Re: EOGenerator + BigDecimal prototypes
- Subject: Re: EOGenerator + BigDecimal prototypes
- From: "John Huss" <email@hidden>
- Date: Mon, 25 Jun 2007 13:44:00 -0500
I would read both models with a text editor and verify that the
"valueType" entry is correct (valueType = B).
John
On 6/23/07, Clark Mueller <email@hidden> wrote:
Hi everyone,
I have a model which I've been working on switching over to
PostgreSQL. I've been using a set of prototypes based on
ERPrototypes, but they are my custom version, not from CVS. I'm
having issues with the 'amount' type under PostgreSQL. EOGenerator
generates all of these as Double types, (valueType = d), NOT as
BigDecimals, which they should be. I'm using a prototype where I have
an "amount" prototype has:
- external type 'float4'
- Data Type 'Big Decimal - BigDecimal B'
- precision 38
- scale 2
For the record - I am using the EOGenerator template described here:
http://www.mail-archive.com/email@hidden/
msg10921.html - When I print out the value of Attribute.valueType, it
is indeed 'd'... If I don't use a prototype for this particular
attribute, and manually tell it to use all the same information
described above, it works perfectly, so it appears that the problem
is not actually with my template, but with the prototypes being
detected by EOGenerator. My reference model in the .eogen file seems
to work correctly.
Case is the same when using a Custom type whose class is NSNumber
with valueType of 'B'. Any idea why EOGenerator is not picking up the
BigDecimal type from the prototypes model?
Thanks,
Clark
_______________________________________________
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