How to get if there are values to update in CriteriaUpdate in Spring boot? Query query = entityManager.createQuery(update);