mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
Fix Hibernate 6 syntax of several queries. Must use Hibernate name and not SQL database column name.
This commit is contained in:
@@ -1435,7 +1435,7 @@ prevent the generation of resource policy entry values with null dspace_object a
|
||||
public List<Item> findByMetadataQuery(Context context, List<QueryPredicate> queryPredicates,
|
||||
List<UUID> collectionUuids, long offset, int limit)
|
||||
throws SQLException {
|
||||
return itemDAO.findByMetadataQuery(context, queryPredicates, collectionUuids, "text_value ~ ?",
|
||||
return itemDAO.findByMetadataQuery(context, queryPredicates, collectionUuids, "value ~ ?",
|
||||
offset, limit);
|
||||
}
|
||||
|
||||
@@ -1444,7 +1444,7 @@ prevent the generation of resource policy entry values with null dspace_object a
|
||||
public long countForMetadataQuery(Context context, List<QueryPredicate> queryPredicates,
|
||||
List<UUID> collectionUuids)
|
||||
throws SQLException {
|
||||
return itemDAO.countForMetadataQuery(context, queryPredicates, collectionUuids, "text_value ~ ?");
|
||||
return itemDAO.countForMetadataQuery(context, queryPredicates, collectionUuids, "value ~ ?");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user