ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shilpa <shilpa.prad...@judiciary.state.nj.us>
Subject Re: QueryForObject returns wrong data
Date Wed, 27 Jul 2005 13:36:21 GMT
Larry Meadors <larry.meadors <at> gmail.com> writes:

> 
> What I mean is if you set the scale on the object, is the real value there?
> yourBigDecimal.setScale(2);
> Larry



Where I need to set this? In my value object?

I have a Value object as :

public class FinancialStatus {

BigDecimal financialSocialsecurity;

public FinancialStatus(Udir3Form udir3)
{
setFinancialSocialsecurity(new BigDecimal(udir3.getFinSS()));
}

public void setFinancialSocialsecurity(BigDecimal decimal) {
		
	financialSocialsecurity = decimal.setScale(2);
}

public BigDecimal getFinancialSocialsecurity() {		
	return financialSocialsecurity;
}

}

Thanks,
shilpa





Mime
View raw message