Skip to content
Advertisement

Convert Hibernate @Formula to JOOQ field

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:

Later in the code, a JPA query is made against the database which compares fee5 to parameter:

How can above query be translated to JOOQ DSL?

Advertisement

Answer

I managed to resolve the issue with following JOOQ query:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement