hql update多表多条件更新。
2个表有1个相同字段做关联。
[解决办法]
如果不建关联关系,那为什么还要用HQL语句?
直接使用SQL执行不就行?
update A set qq=0 where a.bid in (
select b.id from A a,B b where a.id=b.id and a.qq=1 and b.ww=2
)