fix sql error in GET for depositproducts and reset password again.

This commit is contained in:
Keith Woodlock
2012-08-10 09:03:05 +01:00
parent c158e6b318
commit b689b452c3
2 changed files with 3 additions and 5 deletions
@@ -38,7 +38,7 @@ public class DepositProductReadPlatformServiceImpl implements
public Collection<DepositProductData> retrieveAllDepositProducts() { public Collection<DepositProductData> retrieveAllDepositProducts() {
this.context.authenticatedUser(); this.context.authenticatedUser();
DepositProductMapper depositProductMapper= new DepositProductMapper(); DepositProductMapper depositProductMapper= new DepositProductMapper();
String sql="select "+depositProductMapper.depositProductSchema() + " where sp.is_deleted=0"; String sql= "select " + depositProductMapper.depositProductSchema() + " where dp.is_deleted=0";
return this.jdbcTemplate.query(sql,depositProductMapper, new Object[]{}); return this.jdbcTemplate.query(sql,depositProductMapper, new Object[]{});
} }
@@ -118,6 +118,4 @@ public class DepositProductReadPlatformServiceImpl implements
List<CurrencyData> currencyOptions = currencyReadPlatformService.retrieveAllowedCurrencies(); List<CurrencyData> currencyOptions = currencyReadPlatformService.retrieveAllowedCurrencies();
productData.setCurrencyOptions(currencyOptions); productData.setCurrencyOptions(currencyOptions);
} }
}
}
@@ -5,7 +5,7 @@
driverClassName="com.mysql.jdbc.Driver" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/mifosplatform-tenants" url="jdbc:mysql://localhost:3306/mifosplatform-tenants"
username="root" username="root"
password="mifos" password="mysql"
validationQuery="select 1" validationQuery="select 1"
maxActive="10" maxActive="10"
maxIdle="4" maxIdle="4"