Fix Hibernate 6 syntax of several queries. Must use Hibernate name and not SQL database column name.

This commit is contained in:
Tim Donohue
2024-03-20 10:22:46 -05:00
parent 20f14d23ae
commit fafb16ad6b
6 changed files with 25 additions and 25 deletions

View File

@@ -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