From: Jason Tesser <jasontesser@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Calling Stored Proc From Java with Complex Types
Date: Mon, 15 Feb 2010 10:59:45 -0500
Message-ID: <98bbb46a1002150759r7e4bb875pb86c98140894ecd0@mail.gmail.com> (raw)
I am trying to call a Stored Procedure that takes Complex Types.
For example the function is declared as
FUNCTION person_save(person_to_save person, addresses address[], emails
email[], numbers phone[])
person, address etc... are all tables in Postgres.
How do I do this from Java?
I was trying to use Spring
http://forum.springsource.org/showthread.php?t=84731
Do I need to create a type mapping or is there something in the Driver I can
use?
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: jasontesser@gmail.com
Subject: Re: Calling Stored Proc From Java with Complex Types
In-Reply-To: <98bbb46a1002150759r7e4bb875pb86c98140894ecd0@mail.gmail.com>
References: <98bbb46a1002150759r7e4bb875pb86c98140894ecd0@mail.gmail.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