I spent three hours figuring out the reason for the PSQLException, why the data came from Postman, namely the contactData field as null, it turned out that annotation suggested me the bot @JsonProperty(“contact_data”), and in the questions to him I could not find the reason). But I still did not understand why the converter did not work when specifying this annotation?
What idea sugessted: “org.postgresql.util.PSQLException: ERROR: column “contact_data” is of type jsonb, and expression is character varying
Hint: Rewrite the expression or convert its type.”
@Column(name = “contact_data”, columnDefinition = “jsonb”)