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'; sojin Although quite late for an answer (for the insert part), I hope it might be useful someone else: Take the key/value pairs in a HashMap: Map<String, String> hstoreMap = new