Project

General

Profile

Revision e0e63b18

IDe0e63b180e28c4bcd085c31ac6055d117aea00de
Parent af1161e4
Child 08332188

Added by Katja Luther 4 months ago

fix #9053: differ between SortableTaxonNodeQueryResult and simple uuidAndTitleCache

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)