How to use PostgreSQL hstore/json with JdbcTemplate
问题 Is there a way to use PostgreSQL json/hstore with JdbcTemplate ? esp query support. for eg: hstore: INSERT INTO hstore_test (data) VALUES ('"key1"=>"value1", "key2"=>"value2", "key3"=>"value3"') SELECT data -> 'key4' FROM hstore_test SELECT item_id, (each(data)).* FROM hstore_test WHERE item_id = 2 for Json insert into jtest (data) values ('{"k1": 1, "k2": "two"}'); select * from jtest where data ->> 'k2' = 'two'; 回答1: Although quite late for an answer (for the insert part), I hope it might