http://blog.csdn.net/kipen/archive/2007/04/05/1553448.aspx

解决方案 »

  1.   

    from B as b where b.xxx=? and b.a=?
      

  2.   

    楼上的,a说了在b中的映射不是一个普通的LIST,是个MAP,如果用b.a出来那仅仅是对这个map操作,我现在是希望能用HQL访问这个map中的a
      

  3.   

    from A as a where a.b.id=?
      

  4.   

    from B as b,A as a where b.a.id=a.id and b,id=?
      

  5.   

    from A as a where a.b.id=?
    这样好像只能对map中的value查询,也就是说是对MAP<B,String>中的String查询,我现在是要对MAP中的B查询,望指教