About

Jadira is the home for Sousan and Chris Pheby's open source projects. These are reusable open source Java modules that provide first class solutions using the most effective current JEE technologies.

Search
Tag Cloud
...
Login
« Release: Jadira Usertype 3.0.0.CR1 with support for Joda Money 0.6 | Main | New Answers for New Questions: (More Than) A Decade On »
Friday
Jan132012

Approach for Adding Joda Money Support to Jadira Usertype

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.

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (1)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Mass Effect 4 features

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>