mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
updated query to get collections referenced in the subscribers table
This commit is contained in:
@@ -159,7 +159,8 @@ public class CollectionDAOImpl extends AbstractHibernateDSODAO<Collection> imple
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Collection> findCollectionsWithSubscribers(Context context) throws SQLException {
|
public List<Collection> findCollectionsWithSubscribers(Context context) throws SQLException {
|
||||||
return list(createQuery(context, "SELECT DISTINCT col FROM Subscription s join s.collection col"));
|
return list(createQuery(context, "SELECT c FROM Collection c JOIN Subscription s ON c.id = " +
|
||||||
|
"s.dSpaceObject"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user