标签: jpa criteria coalesce
如何使用条件在下面编写查询?
this.entityManager .createQuery("from MyFile f where coalesce (f.downloaded, false) = :downloaded", MyFile.class) .setParameter("downloaded", true) .getResultList();