Attached are the two files I've used to allow me to read JSON postgres
fields in jooq.

The use case i'm running into is where I want to explicitly set the field
to null but the Jooq (or my implementation ) stores it as an empty JSON
object.

My implementation is roughly based on:
https://www.jooq.org/doc/latest/manual/code-generation/custom-data-type-bindings/
but using Jackson JSON library
instead of GSON.

I've tried to adjust the behavior as you can see from the snippet in
PostgresJsonBinding but that isn't working as expected.  The code gets
invoked
but i'm still seeing '{}' being stored rather then nulls.

What am I missing here?


-- 
Thank you
Samir Faci
https://keybase.io/csgeek

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: AbstractPostgresBinding.java
Description: Binary data

Attachment: PostgresJsonBinding.java
Description: Binary data

Reply via email to