res1
res1

Reputation: 3640

jooq: give an alias at a "is not null" field

How can I give an alias for a field where I am using is not null, for example

create.select(SOMETABLE.ID.isNotNull()

I can't use .as(..) after isNotNull()

Thanks

I am using an old version of jooq, 3.4.x. I don't think it matters but I am using apache derby.

Upvotes: 2

Views: 83

Answers (1)

Lukas Eder
Lukas Eder

Reputation: 220762

Use DSL.field(Condition) to turn a Condition into a Field<Boolean>

Upvotes: 1

Related Questions