• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOGenerator + BigDecimal prototypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >EOGenerator + BigDecimal prototypes (From: Clark Mueller <email@hidden>)

  • Prev by Date: Re: WOPopUpButton
  • Next by Date: Re: WWDC
  • Previous by thread: Re: EOGenerator + BigDecimal prototypes
  • Next by thread: Keep WebObjects, Remove cgi-bin
  • Index(es):
    • Date
    • Thread