Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 87F716331BC for ; Mon, 15 Feb 2010 12:01:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 28752-07 for ; Mon, 15 Feb 2010 16:00:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f200.google.com (mail-iw0-f200.google.com [209.85.223.200]) by mail.postgresql.org (Postfix) with ESMTP id E63C5632BF7 for ; Mon, 15 Feb 2010 11:59:46 -0400 (AST) Received: by iwn38 with SMTP id 38so3864011iwn.11 for ; Mon, 15 Feb 2010 07:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=+UXKPtzBkVrTv9mbqNW08Mr/pj2GSF8QBliq40D3bRY=; b=hPmIOigzwjc83E950pSypwT2lcxi3B58i0kFCNdd5cnRzI2U78J5Rz3MSM3/I+W4Os Yf7vm9oAXjNtKrHDyIiwr8bGdKeNLWlPV09FE0wiGhYlwpMarkNooBJjYP42Q7OtA4Vg /npDZYhF6aigTg/SpA5Qj+rqO2/Vv50ayy0OM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vznxT+uX1Izik29NmlrPEzkZTgHklrbtA1PGPX0cGS8Zj8qdudafGOaRq+yCQ7g+5W zZnsyt8pcSI3sc1CDp16Texgx6ZSd7l9uWl8DSNY2ycwBid5e+oMg/E6kVFd091/qgDb s4wjiuoFAvTLcoDPW/wAypEvqn14XHzeGweHg= MIME-Version: 1.0 Received: by 10.231.154.197 with SMTP id p5mr3378889ibw.28.1266249585921; Mon, 15 Feb 2010 07:59:45 -0800 (PST) Date: Mon, 15 Feb 2010 10:59:45 -0500 Message-ID: <98bbb46a1002150759r7e4bb875pb86c98140894ecd0@mail.gmail.com> Subject: Calling Stored Proc From Java with Complex Types From: Jason Tesser To: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=001636c92c89c4123f047fa5b4f5 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.184 tagged_above=-10 required=5 tests=BAYES_40=-0.185, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201002/25 X-Sequence-Number: 20312 --001636c92c89c4123f047fa5b4f5 Content-Type: text/plain; charset=ISO-8859-1 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? --001636c92c89c4123f047fa5b4f5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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[])

perso= n, address etc... are all tables in Postgres.

How do I do this from Java?

I was trying to use Sp= ring htt= p://forum.springsource.org/showthread.php?t=3D84731

Do I need to= create a type mapping or is there something in the Driver I can use?
--001636c92c89c4123f047fa5b4f5--