Let say there is a table:
TableA:Field1, Field2, Field3
and associated JPA entity class
@Entity
@Table(name=\"TableA\")
pub
There is certainly such thing in Hibernate so when you use Hibernate as your JPA provider then you can write your query as in this example:
Query query = entityManager.createQuery("UPDATE MNPOperationPrintDocuments o SET o.fileDownloadCount = CASE WHEN o.fileDownloadCount IS NULL THEN 1 ELSE (o.fileDownloadCount + 1) END " +
" WHERE o IN (:operations)");
query.setParameter("operations", mnpOperationPrintDocumentsList);
int result = query.executeUpdate();