Revision bd424526
Added by Katja Luther over 6 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonNodeDaoHibernateImpl.java | ||
---|---|---|
43 | 43 |
import eu.etaxonomy.cdm.persistence.dao.taxon.IClassificationDao; |
44 | 44 |
import eu.etaxonomy.cdm.persistence.dao.taxon.ITaxonDao; |
45 | 45 |
import eu.etaxonomy.cdm.persistence.dao.taxon.ITaxonNodeDao; |
46 |
import eu.etaxonomy.cdm.persistence.dto.MergeResult; |
|
46 | 47 |
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache; |
47 | 48 |
|
48 | 49 |
/** |
... | ... | |
492 | 493 |
Query query = getSession().createQuery(queryStr); |
493 | 494 |
@SuppressWarnings("unchecked") |
494 | 495 |
List<T> synonymList = query.list(); |
496 |
MergeResult mergeResult; |
|
497 |
Set<T> result = new HashSet<>(); |
|
495 | 498 |
for (T taxonBase : synonymList){ |
499 |
taxonBase = (T) taxonDao.load(taxonBase.getUuid()); |
|
500 |
|
|
496 | 501 |
taxonBase.setSec(newSec); |
497 | 502 |
if (emptyDetail){ |
498 | 503 |
taxonBase.setSecMicroReference(null); |
499 | 504 |
} |
500 |
} |
|
501 |
Set<T> result = new HashSet<>(synonymList); |
|
502 | 505 |
|
503 |
return result; |
|
506 |
result.add(taxonBase); |
|
507 |
|
|
508 |
} |
|
509 |
return result; |
|
504 | 510 |
} |
505 | 511 |
|
506 | 512 |
|
Also available in: Unified diff
smaller changes in ForSubtreeConfigurator