Revision 4cfa3aba
Added by Andreas Müller over 1 year ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/description/DescriptionDaoImpl.java | ||
---|---|---|
551 | 551 |
|
552 | 552 |
Criteria outer = getCriteria(clazz); |
553 | 553 |
|
554 |
outer.add(Restrictions.in("id", (Object[])resultIds));
|
|
554 |
outer.add(Restrictions.in("id", resultIds)); |
|
555 | 555 |
addOrder(outer, orderHints); |
556 | 556 |
|
557 | 557 |
addPageSizeAndNumber(outer, pageSize, pageNumber); |
... | ... | |
610 | 610 |
} |
611 | 611 |
|
612 | 612 |
criteria = getSession().createCriteria(TaxonDescription.class); |
613 |
criteria.add(Restrictions.in("id", (Object[]) resultIds));
|
|
613 |
criteria.add(Restrictions.in("id", resultIds)); |
|
614 | 614 |
addOrder(criteria,orderHints); |
615 | 615 |
|
616 | 616 |
@SuppressWarnings("unchecked") |
... | ... | |
733 | 733 |
if (features != null && features.size() > 0){ |
734 | 734 |
queryString += " and de.feature in (:features) "; |
735 | 735 |
} |
736 |
Class<R> clazz = null; |
|
737 |
Query<R> query = getSession().createQuery(queryString,clazz); |
|
736 |
Query<R> query = getSession().createQuery(queryString); |
|
738 | 737 |
|
739 | 738 |
query.setParameter("taxon_uuid", taxonUuid); |
740 | 739 |
if(type != null){ |
Also available in: Unified diff
revert some cleanup