from CardAssignInfo a left join a.card.detailSet d
where d.category.system.systemId = :systemId and a.personId is not null
and (a.state.id in (:destroyStateIds) or (a.state.id in (:returnStateIds) and d.category.reuseable = true))
这个HQL会产生一些SQL:
........... something.stateId in () or (something.stateId in (:destroyStateIds, :returnStateIds) and ......)
在条件中将参数注入SQL的同一位置,留下另一个空条件的地方。
我想知道hibernate的规范是否有这种行为?