mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
updated query to get collections referenced in the subscribers table
(cherry picked from commit c5989c65bb
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
8205c07586
commit
d6f6444f58
@@ -159,7 +159,8 @@ public class CollectionDAOImpl extends AbstractHibernateDSODAO<Collection> imple
|
||||
|
||||
@Override
|
||||
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
|
||||
|
Reference in New Issue
Block a user