遇到一个问题,希望大家能帮忙解决下,谢谢!!!
有个多对多关系,Building——BuildingGroup,想把不属于该buildingGroup的building给查出来,然后写了个HQL语句,如下:"from Building as b where b not in  (select bg.buildings from BuildingGroup as bg where bg.id = ?)",将buildingGroup的id作为参数传进去了,但一直提示from附近有错误,希望大神们给看下,谢谢!