throw new UserMismatchException(new ErrorMessage("errors.AdminReqd")); if (body.getMaxRecords() <= 0) { body.setMaxRecords(20); createQuery.setMaxResults((int) body.getMaxRecords()); createQuery.setParameter("key", body.getEntityKey()); createQuery.setFirstResult((int) body.getOffset());
throw new UserMismatchException(new ErrorMessage("errors.AdminReqd")); if (body.getMaxRecords() <= 0) { body.setMaxRecords(20); createQuery.setMaxResults((int) body.getMaxRecords()); createQuery.setParameter("key", body.getEntityKey()); createQuery.setFirstResult((int) body.getOffset());