Re: EOGenerator + BigDecimal prototypes
Re: EOGenerator + BigDecimal prototypes
- Subject: Re: EOGenerator + BigDecimal prototypes
- From: Lachlan Deck <email@hidden>
- Date: Tue, 26 Jun 2007 03:02:12 +1000
Hi there,
Are you passing to eogenerator the prototypes as a reference model?
On 24/06/2007, at 2:12 PM, Clark Mueller wrote:
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
with regards,
--
Lachlan Deck
_______________________________________________
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