• 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
EOGenerator + BigDecimal prototypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOGenerator + BigDecimal prototypes


  • Subject: EOGenerator + BigDecimal prototypes
  • From: Clark Mueller <email@hidden>
  • Date: Sat, 23 Jun 2007 22:12:24 -0600

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


  • Follow-Ups:
    • Re: EOGenerator + BigDecimal prototypes
      • From: "John Huss" <email@hidden>
    • Re: EOGenerator + BigDecimal prototypes
      • From: Lachlan Deck <email@hidden>
  • Prev by Date: Re: [OT] moving to Eclipse... still some issue
  • Next by Date: Re: [OT] moving to Eclipse... still some issue
  • Previous by thread: Re: [OT] moving to Eclipse... still some issue
  • Next by thread: Re: EOGenerator + BigDecimal prototypes
  • Index(es):
    • Date
    • Thread