Revision 1ec74f53
Added by Andreas Kohlbecker almost 8 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/common/CdmEntityDaoBase.java | ||
---|---|---|
360 | 360 |
|
361 | 361 |
@Override |
362 | 362 |
public T findById(int id) throws DataAccessException { |
363 |
return (T) getSession().get(type, id);
|
|
363 |
return getSession().get(type, id); |
|
364 | 364 |
} |
365 | 365 |
|
366 | 366 |
|
... | ... | |
412 | 412 |
} |
413 | 413 |
|
414 | 414 |
@Override |
415 |
public List<T> listByIds(Collection<Integer> ids, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) throws DataAccessException {
|
|
415 |
public List<T> loadList(Collection<Integer> ids, List<String> propertyPaths) throws DataAccessException {
|
|
416 | 416 |
|
417 | 417 |
if (ids.isEmpty()) { |
418 | 418 |
return new ArrayList<T>(0); |
419 | 419 |
} |
420 | 420 |
|
421 |
Criteria criteria = prepareList(ids, pageSize, pageNumber, orderHints, "id");
|
|
421 |
Criteria criteria = prepareList(ids, null, null, null, "id");
|
|
422 | 422 |
|
423 |
if (logger.isDebugEnabled()){logger.debug(criteria.toString());};
|
|
423 |
if (logger.isDebugEnabled()){logger.debug(criteria.toString());} |
|
424 | 424 |
|
425 | 425 |
@SuppressWarnings("unchecked") |
426 | 426 |
List<T> result = criteria.list(); |
Also available in: Unified diff
refactoring listByIds to loadByIds