|
Hi gang,
I found a temp fix to my problem. In case anyone is
interested, all I did was
modify MonetaryAmount.java as below
private BigDecimal value;
private Currency currency; private boolean valueFlag = true; private boolean currencyFlag = true; /** * Required by iBatis * @param currency */ public void setCurrency(Currency currency) { if ( currencyFlag ){ this.currency = currency; currencyFlag = false; } } /**
* Required by iBatis * @param value */ public void setValue(BigDecimal value) { if ( valueFlag ){ this.value = value; valueFlag = false; } } public Currency getCurrency() {
return Currency.getInstance( currency.getCurrencyCode() ); } public BigDecimal getValue() {
return new BigDecimal( value.doubleValue() ); } Not pretty but at least security still maintained. And now I can use
Sam,
|
- TypeHandlerCallback problem Dodo
- Re: TypeHandlerCallback problem Dodo
- Probs connecting Pradheep
- Re: Probs connecting Miren Urkijo
- Re: Probs connecting Pradheep
- Re: Probs connecting Brandon Goodin
- Re: Probs connecting Pradheep
- Re: Probs connecting Larry Meadors
- Re: Probs connecting Pradheep
