class PipelineRunDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.REQUIRED)
    public void createPipelineRun(PipelineRun run) {
        if (run.getId() == null) {
            run.setId(createRunId());
        }

        getNamedParameterJdbcTemplate().update(createPipelineRunQuery,
                PipelineRunParameters.getParameters(run, getConnection()));

        createRunSids(run.getId(), run.getRunSids());
    }

}