Project

General

Profile

« Previous | Next » 

Revision 1a3159d5

Added by Andreas Müller almost 8 years ago

Fix bug in TaxonDaoHibernateImpl

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonDaoHibernateImpl.java
1561 1561

  
1562 1562

  
1563 1563
         String queryString = "SELECT nodes.uuid, nodes.id, taxon.titleCache FROM TaxonNode AS nodes JOIN nodes.taxon as taxon WHERE nodes.classification.id = " + classificationId ;
1564
         @SuppressWarnings("unchecked")
1565
         List<Object[]> result;
1566 1564
         if ( excludeUuid != null &&  !excludeUuid.isEmpty()){
1567 1565
             queryString = queryString + " AND taxon.uuid NOT IN (:excludeUuid)" ;
1568 1566
         }
......
1582 1580
         if (pattern != null){
1583 1581
             query.setParameter("pattern", pattern);
1584 1582
         }
1585
         result = getSession().createQuery(queryString).list();
1583
         @SuppressWarnings("unchecked")
1584
         List<Object[]> result = query.list();
1586 1585

  
1587 1586
         if(result.size() == 0){
1588 1587
             return null;

Also available in: Unified diff