Hi team.
Here i add one JPQL quey…
select o from saas$UserReportingHierarchy o
where o.reportingUser.active = true and o.reportyUser.id = :userId
or o.reportingUser.id in (select o1.reportyUser.id from saas$UserReportingHierarchy o1
where o1.reportyUser.id = :userId)
Here i face the following exception
Exception: com.haulmont.cuba.core.sys.jpql.JpqlSyntaxException: Errors found for input jpql