Revision 9dc896c9
Added by Andreas Müller almost 7 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/csv/caryophyllales/out/CsvNameExport.java | ||
---|---|---|
43 | 43 |
import eu.etaxonomy.cdm.model.name.NameTypeDesignationStatus; |
44 | 44 |
import eu.etaxonomy.cdm.model.name.NomenclaturalStatus; |
45 | 45 |
import eu.etaxonomy.cdm.model.name.Rank; |
46 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
46 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
47 | 47 |
import eu.etaxonomy.cdm.model.name.TypeDesignationBase; |
48 | 48 |
import eu.etaxonomy.cdm.model.reference.Reference; |
49 | 49 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
... | ... | |
184 | 184 |
Set<UUID> parentsNodesUUID = new HashSet<UUID>(childrenUuids); |
185 | 185 |
childrenUuids.clear(); |
186 | 186 |
List<TaxonNode> childrenNodes = new ArrayList<TaxonNode>(); |
187 |
TaxonNameBase name;
|
|
187 |
TaxonName name; |
|
188 | 188 |
|
189 | 189 |
|
190 | 190 |
findChildren(state, childrenUuids, parentsNodesUUID); |
... | ... | |
213 | 213 |
* @param familyNode |
214 | 214 |
*/ |
215 | 215 |
private void findChildren(CsvNameExportState state, Set<UUID> childrenUuids, Set<UUID> parentsNodesUUID) { |
216 |
TaxonNameBase name;
|
|
216 |
TaxonName name; |
|
217 | 217 |
List<TaxonNode> familyNodes = getTaxonNodeService().find(parentsNodesUUID); |
218 | 218 |
parentsNodesUUID =new HashSet<UUID>(); |
219 | 219 |
for (TaxonNode familyNode: familyNodes){ |
... | ... | |
223 | 223 |
child = HibernateProxyHelper.deproxy(child, TaxonNode.class); |
224 | 224 |
Taxon taxon = HibernateProxyHelper.deproxy(child.getTaxon()); |
225 | 225 |
if (taxon != null){ |
226 |
name = HibernateProxyHelper.deproxy(taxon.getName(), TaxonNameBase.class);
|
|
226 |
name = HibernateProxyHelper.deproxy(taxon.getName(), TaxonName.class); |
|
227 | 227 |
if (child.getTaxon().getName().getRank().isLower(state.getConfig().getRank()) ) { |
228 | 228 |
childrenUuids.add(child.getUuid()); |
229 | 229 |
if (child.hasChildNodes()){ |
Also available in: Unified diff
fix #6368 rename table and class TaxonNameBase