ERROR: column is of type json but expression is of type character varying in Hibernate
I need to map two columns of entity class as json in postgres using spring data jpa. After reading multiple stackoverflow posts and baeldung post , How to map a map JSON column to Java Object with JPA https://www.baeldung.com/hibernate-persist-json-object I did configuration as below. However, I am facing error " ERROR: column "headers" is of type json but e