I am using this: List result = entityManager.createQuery(query).getResultList();
but when the result is not unique it throws " query did not return a unique resu