• 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: 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


  • Follow-Ups:
    • Re: EOGenerator + BigDecimal prototypes
      • From: Clark Mueller <email@hidden>
References: 
 >EOGenerator + BigDecimal prototypes (From: Clark Mueller <email@hidden>)

  • Prev by Date: Re: Anyone want 4.5.1?
  • Next by Date: Re: [OT] moving to Eclipse... still some issue
  • Previous by thread: EOGenerator + BigDecimal prototypes
  • Next by thread: Re: EOGenerator + BigDecimal prototypes
  • Index(es):
    • Date
    • Thread