class ToolVulnerabilityDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.MANDATORY)
    public void deleteVulnerabilities(long toolId, String version) {
        MapSqlParameterSource params = new MapSqlParameterSource();
        params.addValue(ToolVulnerabilityColumns.TOOL_ID.name(), toolId);
        params.addValue(ToolVulnerabilityColumns.VERSION.name(), version);

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

}