Skip to content

Convert code to use dangerouslyOnDuplicateKeyUpdate #916

Answered by nakamura-to
Distractic asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

The problem is linked to the where declaration, but I don't know how to set it like the String version

You can write as follows:

.where {
    metaPending eq true
    literal(false) eq pending
}

See also https://www.komapper.org/docs/reference/query/querydsl/expression/#literal.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Distractic
Comment options

Answer selected by Distractic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants