I am rewriting entire DB access layer from Hibernate to JOOQ and I face following issue.
One of JPA models is annotated with @Formula annotation as follows:
<
I managed to resolve the issue with following JOOQ query:
BigDecimal input = ...; Field<BigDecimal> fee5 = TABLE.FEE1.add(TABLE.FEE2).add(TABLE.FEE3).add(TABLE.FEE4).as("fee5"); Condition cond = fee5.greaterThan(input);