i'm looking to get all ids of all subscribed users. this is my predicate:
public static Specification<User> userSubscribed(){
return new Specification<User>() {
public Predicate toPredicate(Root<User> root, CriteriaQuery<?> query, CriteriaBuilder builder) {
return builder.equal(root.get("status"), 1 /* 1 = subscribed */);
}
};
}
My repository, however, only allows count, findAll and findOne. Is there a way to get it to return a list of a certain field?