Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/342.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何使用querydsl执行此操作?_Java_Sql_Querydsl - Fatal编程技术网

Java 如何使用querydsl执行此操作?

Java 如何使用querydsl执行此操作?,java,sql,querydsl,Java,Sql,Querydsl,我将查询的这一部分转换为querydsl,我想知道是否有实现此转换的方法 Where... ... and ce.id || ce.is_open not in (select fut_client.client_id || fut_client.is_available from future_client fut_client)") 假设: 您正在使用querydsl sql 在提供的sql中,|是串联 id和client\u id是数字 是打开的和是可用的是字符串 quer

我将查询的这一部分转换为querydsl,我想知道是否有实现此转换的方法

Where...
...
and ce.id || ce.is_open not in (select fut_client.client_id || fut_client.is_available from future_client fut_client)")
假设:

  • 您正在使用
    querydsl sql
  • 在提供的sql中,
    |
    是串联
  • id
    client\u id
    是数字
  • 是打开的
    是可用的
    是字符串
query.where(someRelationalPathBase.something.eq(someRelationalPathBase.somethingElse)
            .and(ce.id.stringValue().concat(ci.isOpen())
            .notIn(SQLExpressions.select(futClient.clientId.stringValue().concat(futClient.isAvailable))
            .from(futClient))));