Revision ccd3aaab
Added by Andreas Müller about 2 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/hibernate/PostMergeEntityListener.java | ||
---|---|---|
117 | 117 |
} else if (ITreeNode.class.isAssignableFrom(entityClazz)){ //TaxonNode or TermNode |
118 | 118 |
//See PolytomousKeyNode above |
119 | 119 |
//Not yet tested if necessary here, too. |
120 |
ITreeNode<?> resultNode = (ITreeNode<?>)result; |
|
121 |
resultNode.getChildNodes().size(); |
|
120 |
|
|
121 |
//#10101 |
|
122 |
//preliminary disabled as it seems to be the cause |
|
123 |
//for failing TaxEditor tests in TaxonNameEditorTest |
|
124 |
//methods |
|
125 |
// * addDeleteAddHomotypicSynonym, |
|
126 |
// * addDeleteAddHomotypicSynonymWithAnnotations |
|
127 |
// * addHeterotypicSynonym |
|
128 |
// * testAddHomotypicSynonym |
|
129 |
//All due to failed to lazily initialize a collection of role: eu.etaxonomy.cdm.model.taxon.TaxonNode.childNodes, could not initialize proxy - no Session |
|
130 |
//We need to check if this is an issue in the test behavior or in the solution itself |
|
131 |
// |
|
132 |
// ITreeNode<?> resultNode = (ITreeNode<?>)result; |
|
133 |
// resultNode.getChildNodes().size(); |
|
122 | 134 |
} |
123 | 135 |
} |
124 | 136 |
} |
Also available in: Unified diff
ref #10101 again preliminary remove children initialization in PostMergeEntityListener