I have this query:
sess.createQuery("from Box b join b.items bi order by bi.name").list()
It works fine. However, I have a hibernate's Collection boxes and want to filter is. Naive tries:
sess.createFilter(boxes, "join this.items bi order by bi.name").list()
sess.createFilter(boxes, "from this join this.items bi order by bi.name").list()
don't work!
What's the proper way to convert this HQL to filter?