Skip to content

Commit 19349e2

Browse files
committed
fixes Hibernate 6 bug
1 parent f4f540f commit 19349e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dspace-api/src/main/java/org/dspace/content/dao/impl/BitstreamDAOImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public int countDeleted(Context context) throws SQLException {
178178
@Override
179179
public int countWithNoPolicy(Context context) throws SQLException {
180180
Query query = createQuery(context,
181-
"SELECT count(bit.id) from Bitstream bit where bit.deleted<>true and bit.id not in" +
181+
"SELECT count(bit.id) from Bitstream bit where bit.deleted<>true and bit not in" +
182182
" (select res.dSpaceObject from ResourcePolicy res where res.resourceTypeId = " +
183183
":typeId )");
184184
query.setParameter("typeId", Constants.BITSTREAM);

0 commit comments

Comments
 (0)