I'm currently working on a project that uses JOOQ for the sql transactions with a Postgres. But one of the models has a field of JsonNode type ( jsonb in postgres ). JOOQ code generator does not support this so I added a custom binding which was supposed to solve the problem but even though the binding is loaded it never applies on the specific model and the generator just skips this model.
My stack (in the demo) is: JOOQ Hibernate Jackson.
The demo project provides two models, one valid and one with JsonNode to show that the generator is actually running and scanning the models but skips the model containing JsonNode field.
I have already tried a variety of names in forcedType expression field: .simplename. , .SIMPLENAME., .impl., .IMPL., .json., .JSON., .jsonb., .JSONB.,
tried to set the setting the sql in binding to ::json , ::jsonb, ::_jsonb
tried to set the register type to Types.VARCHAR, Types.OTHER, Types.JAVA_OBJECT
The following repo https://github.com/mmichailidis/JooqDemo contains a project that reproduce the problem
The expected output is for both models to be generated in the jooq generated folder but only the one without the JsonNode is getting generated.