} catch (SQLException e) {
throw new SienaException(e);
}
}
if(BigDecimal.class == type){
DecimalPrecision ann = field.getAnnotation(DecimalPrecision.class);
if(ann==null){
return (BigDecimal)value;
}else {
switch(ann.storageType()){
case DOUBLE:
return BigDecimal.valueOf((Double)value);
case STRING:
return new BigDecimal((String)value);
case NATIVE: