mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DS-2764] CollectionDAOImpl - Parameters Switched
This commit is contained in:
@@ -58,12 +58,12 @@ public class CollectionDAOImpl extends AbstractHibernateDSODAO<Collection> imple
|
||||
addMetadataSortQuery(query, Arrays.asList(order), null);
|
||||
|
||||
Query hibernateQuery = createQuery(context, query.toString());
|
||||
if(limit != null)
|
||||
if(offset != null)
|
||||
{
|
||||
hibernateQuery.setFirstResult(limit);
|
||||
hibernateQuery.setFirstResult(offset);
|
||||
}
|
||||
if(offset != null){
|
||||
hibernateQuery.setMaxResults(offset);
|
||||
if(limit != null){
|
||||
hibernateQuery.setMaxResults(limit);
|
||||
}
|
||||
hibernateQuery.setParameter(order.toString(), order.getFieldID());
|
||||
return list(hibernateQuery);
|
||||
|
Reference in New Issue
Block a user