【发布时间】:2015-09-21 14:50:53
【问题描述】:
我正在尝试在集合上使用 querydsl。
我的名单是List<String>。
第一个问题,是否可以在 primitive 类型集合上使用 querydsl?
此后,我如何构建一个查询,例如:give all strings which there aren't in list x?
我试过这个:
String digitalResourceId;
for (String resource : from(digitalResourceId, digitalResourceIds)
.where(fua.getResources().any().eq(digitalResourceId))
.list(digitalResourceId)){
System.out.println(resource);
}
但是我在any() 方法上编译了问题:
The method any() is undefined for the type List<String>
【问题讨论】:
标签: java collections querydsl jooq