Reputation: 135
I have this part of my query which I'm transforming into querydsl and I would like to know if there's a way to achieve this transformation
Where...
...
and ce.id || ce.is_open not in (select fut_client.client_id || fut_client.is_available from future_client fut_client)")
Upvotes: 1
Views: 232
Reputation: 9576
Assumptions:
querydsl-sql
||
is concatenationid
and client_id
are numbersis_open
and is_available
are stringsquery.where(someRelationalPathBase.something.eq(someRelationalPathBase.somethingElse)
.and(ce.id.stringValue().concat(ci.isOpen())
.notIn(SQLExpressions.select(futClient.clientId.stringValue().concat(futClient.isAvailable))
.from(futClient))));
Upvotes: 2