Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 2868AA684DE for ; Mon, 21 May 2012 15:55:56 -0300 (ADT) Received: from auth-smtp.nebula.fi ([217.30.180.105]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SWXlr-0003jj-3Q for pgsql-jdbc@postgresql.org; Mon, 21 May 2012 18:55:56 +0000 Received: from quadvadis.localdomain (gw.nitor.fi [83.145.228.24]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id q4LItdWR012307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 21 May 2012 21:55:40 +0300 Message-ID: <4FBA8FAB.2070805@nitorcreations.com> Date: Mon, 21 May 2012 21:55:39 +0300 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: hstore documentation Content-Type: multipart/mixed; boundary="------------030301010905090604040403" X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201205/69 X-Sequence-Number: 22969 This is a multi-part message in MIME format. --------------030301010905090604040403 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Here is a patch that adds at least some information about jdbc driver support of hstore - in hope that google will find it and point users to it. -Mikko --------------030301010905090604040403 Content-Type: text/x-patch; name="hstore-documentation.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hstore-documentation.patch" diff --git a/doc/pgjdbc.xml b/doc/pgjdbc.xml index a13d320..7fdb616 100644 --- a/doc/pgjdbc.xml +++ b/doc/pgjdbc.xml @@ -2396,6 +2396,21 @@ public class GeometricTest { + + hstore Data Type + + + PostgreSQL has a hstore + extension that can store unstructured key/value pairs into a table. + The jdbc driver maps the type to java.util.Map<String, String>. + + + After you have enabled the hstore extension in your database the mapping of hstore + type to/from Map will be automatically enabled when using + setObject() and getObject() methods. + + Large Objects --------------030301010905090604040403--