I am trying to create an HQL query that will filter a tree based on a user.
On the tree root i have AllowUsers and AllowRoles and on each node I have DenyUsers and DenyNodes. I can filter to on the user on the root of the tree using
select e 
from oStructureMenu e 
  join fetch e.Nodes n 
where e.Id = :id 
  and :user in (select u from e.AllowUsers u)
but when I add
and :user in (select f.DenyUsers from n f)
the sql created has a syntax error
Also I have no idea how I am going to compare the roles for the user to the roles in the allow or deny开发者_StackOverflow社区 roles collections
Any help will be appreciated...
shouldn't it be
and :user in (select f from n.DenyUsers f)
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论