|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________ Mifos-issues mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mifos-issues

Yanna, I took your changes in. Still no replacement though.
In my debugger the officeId comes back as a string. I changed the code to the following:
if (commandAsJsonMap.containsKey("officeId"))
{ Object officeIdObj = commandAsJsonMap.get("officeId"); sql = " SELECT name FROM m_office WHERE id = " + officeIdObj; String officeName = this.jdbcTemplate.queryForObject(sql, String.class); String regex = "\"officeId\":\\s\\d+"; commandAsJson = commandAsJson.replaceAll(regex, "\"officeName\": \""+officeName+"\""); }officeName was set correctly but the commandAsJson replacement still didn't work.
What environment do you develop on?