Fix for subscriptions not working after hibernate update.

This commit is contained in:
Kavin 2023-04-27 08:08:45 +01:00
parent 73fa1edf25
commit f19f2b4c9a
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -424,7 +424,7 @@ public class FeedHandlers {
CriteriaBuilder cb = s.getCriteriaBuilder();
var query = cb.createQuery(Channel.class);
var root = query.from(Channel.class);
var subquery = query.subquery(User.class);
var subquery = query.subquery(String.class);
var subroot = subquery.from(User.class);
subquery.select(subroot.get("subscribed_ids"))