class PipelineDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.MANDATORY)
    public void createPipeline(Pipeline pipeline) {
        pipeline.setId(createPipelineId());
        getNamedParameterJdbcTemplate().update(createPipelineQuery, PipelineParameters.getParameters(pipeline));
    }

}