public void updateRecord() {
try {
Connection conn = DataSourceHandler.getDataSource().getConnection();
GenericTransactionController controller = new GenericTransactionController(conn);
Map columnMap = controller.findWhere("role", "role_code='A'");
columnMap.put("role", "Test title is changed");
// columnMap.put("role_code", "B");
// columnMap.put("date_created", new Date());
// columnMap.put("date_updated", new Date());
// columnMap.put("updater_person_id", new Integer(3));
controller.updateRecord("role", "role_code", columnMap);
conn.commit();
DbUtils.close(conn);
} catch (FinderException ce) {
System.out.println("FinderException: " + ce.getMessage());
return;