NHibernate HQL: left outer join with “with” clause does not work

后端 未结 1 1513
不知归路
不知归路 2021-01-05 09:50

In an EAV system, I have a mapping that looks like this:


   
      

        
相关标签:
1条回答
  • 2021-01-05 10:41

    This works:

    from Record rec
    left join rec.Values vals with vals.index = :field
    order by vals
    

    Not exactly intuitive or well-documented, but it gets the job done.

    0 讨论(0)
提交回复
热议问题