From: Oussema Benjemaa <ousema2003@yahoo.fr>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: mapping java objects with postgresql types
Date: Thu, 22 Jan 2015 15:39:39 +0000 (UTC)
Message-ID: <747805532.5625574.1421941179304.JavaMail.yahoo@jws11165.mail.ir2.yahoo.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Hi,
I want to pass array of complex type from java intoplpgsql function
I already tried using JDBC Array and Structtypes, but postgresql jdbc driver doesn't implement Struct yet so weweren't able to get thinks work
(in addition of the fact that. (Connection.createStruct is notimplemented in postgres JDBC)
and actually as solution , i'm using PGObject to push the data to the database with some diffuclts with the syntax and this is mainly for types composites having bytea datatype ..
but finally i succeded to push data to the database with the usage of the text representation of the array of the type composite .
But i'm strongly , looking for an alternative of the PGObject , to avoid passing complex structures (array of types) from jdbc with text representation.
ALso i didn't found documentation for passing such as complex structures including the the rules fortext representation of nested types .
Could you please advice ...
Oussema BenJemaaSenior DBA
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: ousema2003@yahoo.fr
Subject: Re: mapping java objects with postgresql types
In-Reply-To: <747805532.5625574.1421941179304.JavaMail.yahoo@jws11165.mail.ir2.yahoo.com>
References: <747805532.5625574.1421941179304.JavaMail.yahoo@jws11165.mail.ir2.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox