Project

General

Profile

Revision e93e2265

IDe93e22653c1ca68fa18e529974e71a4adcb0624f
Parent a9c1e5d6
Child 34d7fab8

Added by Patrick Plitzner over 2 years ago

Fix LazyInitializationException

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/DescriptiveDataSetService.java
158 158
                Set<TaxonNode> taxonSubtreeFilter = descriptiveDataSet.getTaxonSubtreeFilter();
159 159
                for (TaxonNode node : taxonSubtreeFilter) {
160 160
                    //check for node
161
                    node = taxonNodeService.load(node.getId(), Arrays.asList("taxon"));
161 162
                    taxonNode = findTaxonNodeForDescription(node, description);
162 163
                    if(taxonNode!=null){
163 164
                        break;
164 165
                    }
165 166
                    else{
166 167
                        //check for child nodes
167
                        List<TaxonNode> allChildren = taxonNodeService.loadChildNodesOfTaxonNode(node, null, true, false, null);
168
                        List<TaxonNode> allChildren = taxonNodeService.loadChildNodesOfTaxonNode(node, Arrays.asList("taxon"), true, true, null);
168 169
                        for (TaxonNode child : allChildren) {
169 170
                            taxonNode = findTaxonNodeForDescription(child, description);
170 171
                            if(taxonNode!=null){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)