场景:
我需要一个project对象,它关联着一个工作附件attachment对象,中间有一个附件包的对象attachmentUnit,我要获得没有附件的project。
select p from project p , attachment a where ******a与p的关联 ;
hql我们经常会用到in语句。
那么我们可以传入数组。
from project where id in (?);
?可以用new String[]{}表示。
当然我也使用过 list set 集合的toArray()来传入。。只限 integer。String 。之前出现过。因为单引号的问题而报错。。