Revision e0e63b18
Added by Katja Luther about 4 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/common/IdentifiableDaoBase.java | ||
---|---|---|
719 | 719 |
List<UuidAndTitleCache<E>> list = new ArrayList<>(); |
720 | 720 |
|
721 | 721 |
|
722 |
List<SortableTaxonNodeQueryResult> result = query.list(); |
|
723 |
|
|
724 |
for(SortableTaxonNodeQueryResult stnqr : result){ |
|
725 |
list.add(new UuidAndTitleCache<>(stnqr.getTaxonNodeUuid(),stnqr.getTaxonNodeId(), stnqr.getTaxonTitleCache())); |
|
722 |
List<Object> result = query.list(); |
|
723 |
|
|
724 |
for(Object obj : result){ |
|
725 |
if (obj instanceof SortableTaxonNodeQueryResult) { |
|
726 |
SortableTaxonNodeQueryResult stnqr = (SortableTaxonNodeQueryResult) obj; |
|
727 |
list.add(new UuidAndTitleCache<>(stnqr.getTaxonNodeUuid(),stnqr.getTaxonNodeId(), stnqr.getTaxonTitleCache())); |
|
728 |
}else{ |
|
729 |
Object[] object = (Object[])obj; |
|
730 |
list.add(new UuidAndTitleCache<>((UUID) object[0],(Integer) object[1], (String) object[2])); |
|
731 |
} |
|
726 | 732 |
} |
727 | 733 |
return list; |
728 | 734 |
} |
Also available in: Unified diff
fix #9053: differ between SortableTaxonNodeQueryResult and simple uuidAndTitleCache