Examples of saveAndFlush()


Examples of org.fao.geonet.repository.SchematronCriteriaGroupRepository.saveAndFlush()

            throw new BadInputEx(PARAM_NEW_GROUP_NAME + " and " + PARAM_NEW_SCHEMATRON_ID +
                                 " have the same value as the old values", newGroupName+":"+newSchematronId){};
        }

        repository.delete(group.getId());
        repository.saveAndFlush(newGroup);
        return new Element("ok");
    }
}
View Full Code Here

Examples of org.fao.geonet.repository.SchematronCriteriaGroupRepository.saveAndFlush()

        criteria.setValue(value);
        criteria.setUiType(uitype);
        criteria.setUiValue(uivalue);
        group.addCriteria(criteria);

        group = criteriaGroupRepository.saveAndFlush(group);
        SchematronCriteria savedCriteria = group.getCriteria().get(group.getCriteria().size() - 1);

        Element result = new Element(Jeeves.Elem.RESPONSE);
        result.addContent(new Element("status").setText("success"));
        result.addContent(new Element("id").setText("" + savedCriteria.getId()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.