Description
OK, I went through the API as much as I could and as I do fully understand why it is created the way it is - it causes a problem for JPA/Hibernate mapping.
The easiest and, possibly, the safest way is to use toString
/Parse
to represent the amount and currency in the DB. But this is far from perfect if one would like, well I do not know... like operate with SQL on this representation? sum
, min
, max
... none will work on VARCHAR
the way I would like to. But I do not see alternatives as I do not have setters to operate by property index on the object. Meaning either I have all data or I won't create an object that I can pass on by reference... or maybe I am missing something.
Any bits of advice? Thoughts on this? I would love to store FastMoney as two separate columns, but I do not see a reasonable option for this...