| Hello, yes we use moneta in our project. I am not an expert but it should be pretty trivial. At the moment we use jadira usertype with hibernate 5.1, because it doesn't work with hibernate 5.2: https://github.com/JadiraOrg/jadira/issues/56 All we are doing is declaring a @Type annotation:
@Column(name = "currency")
@Type(type = "org.jadira.usertype.moneyandcurrency.moneta.PersistentCurrencyUnit")
private CurrencyUnit defaultCurrency;
Maybe we can get some help from the jadira team. |