class ToolGroupDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.MANDATORY)
    public void updateToolGroup(ToolGroup toolGroup) {
        MapSqlParameterSource params = new MapSqlParameterSource();
        params.addValue(ToolGroupParameters.ID.name(), toolGroup.getId());
        params.addValue(ToolGroupParameters.OWNER.name(), toolGroup.getOwner());
        params.addValue(ToolDao.ToolParameters.DESCRIPTION.name(), toolGroup.getDescription());

        getNamedParameterJdbcTemplate().update(updateToolGroupQuery, params);
    }

}