BigDecimal Problem

62 views
Skip to first unread message

František Kolář

unread,
Jan 17, 2012, 5:37:54 AM1/17/12
to OrientDB
Hi Luca,

We are trying to use your DB in one of our bigger internet projects
and we came to accross to one major issue for us that is we are not
sure how to represent MONEY object.
Normaly you represent this as BigDecimal in your application and in
relation DB it is numeric type so you do not lose the information
about the precision .
Would help us on this or do you plan to support Numeric types on your
DB ?

Thank you for any ideas, help,

Best Regards,
Frantisek

Luca Garulli

unread,
Jan 20, 2012, 4:53:54 AM1/20/12
to orient-...@googlegroups.com
Hi,
are you talking about something like the RDBMS where you can tell the decimals?

Now it's not supported but seems a MUST to have. In Java we have BigDecimal to it's just matter to find a way to serialize it. Could you open a new issue for it?

Lvc@

František Kolář

unread,
Jan 20, 2012, 5:01:06 AM1/20/12
to orient-...@googlegroups.com
We are just using temporary double so we have 

Money  object {
        amount  double
  currency Currency
}

And we have Money formatter and we rely on the fact that we work only Amont that have two digits after decimal point.  - the scale is only 2 so we might be fine for a while.. 

Ok I will open the ticket.. 

Thank you, 
Frantisek 

Luca Garulli

unread,
Jan 20, 2012, 5:27:05 PM1/20/12
to orient-...@googlegroups.com
Hi,
fixed as SVN r4628.

Lvc@

František Kolář

unread,
Jan 20, 2012, 5:35:03 PM1/20/12
to orient-...@googlegroups.com
Hi Luca, 

What to say You rock. and Orient as well ;-)


Thank you, 
Frantisek 
Reply all
Reply to author
Forward
0 new messages