79310367

Date: 2024-12-26 20:19:37
Score: 4
Natty: 4
Report link

Are you sure it will not work for write just "subject"?

I have the same problem, and I found use raw string worked.

Or maybe use like this also worked

CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<Exam> cq = cb.createQuery(Exam.class);
Root<Exam> root = cq.from(Exam.class);

cq.where(cb.isMember(subject, (ListAttribute)root.get(Exam_.subjects)));

return em.createQuery(cq);
Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: LagSeeing