Approach for Adding Joda Money Support to Jadira Usertype
Friday, January 13, 2012 at 5:12PM For the next release of Jadira Usertype I am planning to add support for Joda Money.
The changes proposed are shown in this article. The existing column mapper framework used in Jadira Usertype will be augmented to provide new base mappers for Integer and Decimal types, and concrete mappers provided to map CurrencyUnit, Currency and BigMoneyProviders to single columns. For BigMoneyProvider types, Major (e.g. dollars), Minor (e.g. cents) and Decimal (i.e. dollars and cents) mappings will be provided:
These mappers will be used to implement single and multi-column types that support a variety of ways of storing money both with, and without a separate column for holding the currency:
Please share any feedback or suggestions for the proposed design.
Chris |
Post a Comment | 
Reader Comments