Project

General

Profile

Revision e6c775fc

IDe6c775fceff7d6d6e1f0a4bb76a56f9c245c639c
Parent daf3a3a2
Child 036d54df

Added by Patrick Plitzner over 2 years ago

ref #6806 Remove saving in service methods

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/FeatureNodeServiceImpl.java
103 103
	 public UpdateResult addChildFeatureNode(FeatureNode node, Feature featureChild){
104 104
	     UpdateResult result = new UpdateResult();
105 105
	     FeatureNode childNode = FeatureNode.NewInstance(featureChild);
106
	     save(childNode);
107 106
	     node.addChild(childNode);
108 107
	     result.addUpdatedObject(node);
109 108
	     return result;
......
153 152
            targetNode.addChild(movedNode, position);
154 153
        }
155 154
        result.addUpdatedObject(targetNode);
156
        saveOrUpdate(targetNode);
157
        saveOrUpdate(movedNode);
158 155
        if(parent!=null){
159 156
            result.addUpdatedObject(parent);
160
            saveOrUpdate(parent);
161 157
        }
162 158
        result.setCdmEntity(targetNode.getFeatureTree());
163 159
        return result;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)