I’m trying to use NamedParameterJdbcTemplate to retrieve a Decimal(4,2) value from the DB. Had it been an int value, I could’ve done NamedParameterJdbcTemplate.queryForInt() but I dont find a similar function for retrieving a Decimal. Please help.
I’m trying to use NamedParameterJdbcTemplate to retrieve a Decimal(4,2) value from the DB. Had
Share
You can use the
queryForObjectmethod of theNamedParameterJdbcTemplate