class MetadataEntityDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.MANDATORY)
    public void createMetadataEntity(MetadataEntity metadataEntity) {
        metadataEntity.setId(daoHelper.createId(metadataEntitySequence));
        getNamedParameterJdbcTemplate().update(createMetadataEntityQuery,
                MetadataEntityParameters.getParameters(metadataEntity));
    }

}