File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
fineract-provider/src/main/java/org/apache/fineract/portfolio/tax/service Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ public class TaxReadPlatformServiceImpl implements TaxReadPlatformService {
5252 @ Override
5353 public List <TaxComponentData > retrieveAllTaxComponents () {
5454 String sql = "select " + TAX_COMPONENT_MAPPER .getSchema ();
55- return this .jdbcTemplate .query (sql , TAX_COMPONENT_MAPPER ); // NOSONAR
55+ return this .jdbcTemplate .query (con -> con .prepareStatement (sql ,
56+ ResultSet .TYPE_SCROLL_SENSITIVE ,
57+ ResultSet .CONCUR_UPDATABLE ), TAX_COMPONENT_MAPPER ); // NOSONAR
5658 }
5759
5860 @ Override
@@ -70,7 +72,9 @@ public TaxComponentData retrieveTaxComponentTemplate() {
7072 @ Override
7173 public List <TaxGroupData > retrieveAllTaxGroups () {
7274 String sql = "select " + TAX_GROUP_MAPPER .getSchema ();
73- return this .jdbcTemplate .query (sql , TAX_GROUP_MAPPER ); // NOSONAR
75+ return this .jdbcTemplate .query (con -> con .prepareStatement (sql ,
76+ ResultSet .TYPE_SCROLL_SENSITIVE ,
77+ ResultSet .CONCUR_UPDATABLE ), TAX_GROUP_MAPPER ); // NOSONAR
7478 }
7579
7680 @ Override
You can’t perform that action at this time.
0 commit comments