Revision 81b53960
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewTaxonNodeWizard.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.newWizard; |
5 | 5 |
|
6 |
import java.util.ArrayList; |
|
6 | 7 |
import java.util.HashSet; |
8 |
import java.util.List; |
|
7 | 9 |
import java.util.Set; |
8 | 10 |
import java.util.UUID; |
9 | 11 |
|
... | ... | |
14 | 16 |
import eu.etaxonomy.cdm.api.application.CdmChangeEvent.Action; |
15 | 17 |
import eu.etaxonomy.cdm.api.service.IClassificationService; |
16 | 18 |
import eu.etaxonomy.cdm.api.service.ITaxonNodeService; |
19 |
import eu.etaxonomy.cdm.api.service.ITaxonService; |
|
17 | 20 |
import eu.etaxonomy.cdm.api.service.UpdateResult; |
18 | 21 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
19 | 22 |
import eu.etaxonomy.cdm.model.reference.Reference; |
... | ... | |
116 | 119 |
return CdmStore.getService(IClassificationService.class).load(treeNode.getUuid()); |
117 | 120 |
} |
118 | 121 |
else if(treeNode instanceof TaxonNode){ |
119 |
return CdmStore.getService(ITaxonNodeService.class).load(treeNode.getUuid()); |
|
122 |
List<String> propertyPaths = new ArrayList<String>(); |
|
123 |
propertyPaths.add("taxon"); |
|
124 |
propertyPaths.add("taxon.sec"); |
|
125 |
TaxonNode node = CdmStore.getService(ITaxonNodeService.class).load(treeNode.getUuid(), propertyPaths); |
|
126 |
//Taxon taxon = (Taxon) CdmStore.getService(ITaxonService.class).load(node.getTaxon().getUuid()); |
|
127 |
return node; |
|
120 | 128 |
} |
121 | 129 |
} |
122 | 130 |
} |
Also available in: Unified diff
fix #5607: laoding of parentnode with propertyPaths solves the problem