Java 对集合的查询->;字符串列表的any()

Java 对集合的查询->;字符串列表的any(),java,collections,querydsl,jooq,Java,Collections,Querydsl,Jooq,我试图在集合上使用querydsl。 我的列表是一个列表 第一个问题,是否可以在基元类型集合上使用querydsl? 此后,我如何构建这样的查询:给出列表x中没有的所有字符串 我试过这个: String digitalResourceId; for (String resource : from(digitalResourceId, digitalResourceIds) .where(fua.getResources().any().eq

我试图在集合上使用querydsl。 我的列表是一个
列表

第一个问题,是否可以在基元类型集合上使用querydsl? 此后,我如何构建这样的查询:
给出列表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>
类型列表的any()方法未定义
列表x=。。。
列表输出=queryFactory.selectFrom(resource\u table.resourceId)
.where(resource_table.resourceId.notIn(x))
.fetch();
List<String> x = ...
List<String> output = queryFactory.selectFrom(resource_table.resourceId)
    .where(resource_table.resourceId.notIn(x))
    .fetch();