Support JavaMoney/Moneta types

Description

JSR 354 defines support for "currencies and monetary amounts" under the larger JavaMoney umbrella. Moneta is the RI for JSR 354.

Specifically add support for persistence of:

  • javax.money.CurrencyUnit

  • javax.money.MonetaryAmount

Activity

Show:

Steve EbersoleOctober 8, 2021 at 7:15 PM

Another one we've been punting down the road for years, and no one has stepped up to implement it

Sanne GrinoveroNovember 11, 2019 at 10:48 AM

Hi , sorry I don’t think anyone from the team has bandwith to work on this at the moment. Open for contributions, as usual

Petar TahchievNovember 10, 2019 at 7:52 PM

Any updates on this? We are approaching java 14

Dario SeidlJuly 3, 2018 at 3:00 PM

I would also love to see "official" support for these types.

One thing to consider is how to persist the currency of MonetaryAmounts. Jadira supports persisting just the amount with a fixed currency parameter (not stored in the database); or persisting the MonetaryAmount as two columns. (http://jadira.sourceforge.net/usertype-userguide.html)

A third option would be to persist amount and currency as a single string column with some separator character.

Petar TahchievJune 20, 2018 at 12:00 PM

Any updates on this one?

Out of Date

Details

Assignee

Reporter

Priority

Created March 22, 2015 at 12:26 AM
Updated October 8, 2021 at 7:15 PM
Resolved October 8, 2021 at 7:15 PM

Flag notifications