X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5B2129FA322 for ; Thu, 13 Jul 2006 11:17:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 97888-03 for ; Thu, 13 Jul 2006 11:17:13 -0300 (ADT) X-Greylist: delayed 00:26:18.656496 by SQLgrey- Received: from mail.silcom.com.br (silcom.com.br [200.138.113.93]) by postgresql.org (Postfix) with ESMTP id 5FA319FA319 for ; Thu, 13 Jul 2006 11:17:14 -0300 (ADT) Received: from [192.168.0.15] (morretes.silcom [192.168.0.15]) by mail.silcom.com.br (Postfix) with ESMTP id 7E0622004B for ; Thu, 13 Jul 2006 10:50:41 -0300 (BRT) Message-ID: <44B64FB1.3010802@silcom.com.br> Date: Thu, 13 Jul 2006 10:50:41 -0300 From: Ricardo Vaz Mannrich User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: PostgreSQL array vs. JDBC vs. Hibernate Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/56 X-Sequence-Number: 15482 What is the better way to read and write PostgreSQL array columns with JDBC? If I have this table: CREATE TABLE test ( test_id INTEGER NOT NULL PRIMARY KEY, test_arr VARCHAR[] ); How can I use PreparedStatements to write test_arr column? What is the better way to read it? And most important: how can I do this with Hibernate? I tryed to use a single Strind column. It's possible to read but I cant write. I'm using 8.1.3. Thanks. -- Ricardo