Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YEfM8-0001rr-44 for pgsql-jdbc@arkaria.postgresql.org; Fri, 23 Jan 2015 14:37:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YEfM7-0005sq-K3 for pgsql-jdbc@arkaria.postgresql.org; Fri, 23 Jan 2015 14:37:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YEfM5-0005pt-JO for pgsql-jdbc@postgresql.org; Fri, 23 Jan 2015 14:37:02 +0000 Received: from nm28-vm2.bullet.mail.ir2.yahoo.com ([212.82.97.62]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YEfM1-0006po-Mo for pgsql-jdbc@postgresql.org; Fri, 23 Jan 2015 14:36:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1422023815; bh=BMIkLPYOeoQLZQQQvWB4Fkojr8RR+VMV6fguQqP8wys=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=FFHDkUAp2x4IAowWfdjOsJgmt169CrYYNuPV2DXy59LKMlHC3mnNSh96oqO7Fi7MXa6dUCrjaWcXci3n1QsV1dTTGdkCUa8Wpnvl6TRcA5bGU0vcrMeObPtx2Nlyq4VvK9yZrsVI1wHgLA9tjopWU7IJ7tgZMWssnT0952h5C6DXF+9yo5zpv/LkhQgSqXj+2w0x/dVOM9mNIurkE6hp7nfb7IK1BMrrpSHgvj19jYUbv721l/4RdwsrZjp3Tdx2AAxWUcMbVmC5Vl2ddYkMk0h2QQNbXCzIx7OFnzB1e3OQ+ccVMgmVBrjoQfCHJZO9mtWMkMdMhN7298ojusRmSQ== Received: from [212.82.98.51] by nm28.bullet.mail.ir2.yahoo.com with NNFMP; 23 Jan 2015 14:36:55 -0000 Received: from [212.82.98.80] by tm4.bullet.mail.ir2.yahoo.com with NNFMP; 23 Jan 2015 14:36:53 -0000 Received: from [127.0.0.1] by omp1017.mail.ir2.yahoo.com with NNFMP; 23 Jan 2015 14:36:53 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 533042.15715.bm@omp1017.mail.ir2.yahoo.com X-YMail-OSG: D6z7VfYVM1mi5UOEDupSmzRHuIrO4vcuiWkyO9XM4mvBdxUTmUEFYJaRucbjyay J2Ecm1fsHney4645vE4TSZrwkGLnBNvWxxyIjm5sm1jFAE0oZN7N3uxpfWLW.Oc2l3dakv3Rr6iO .DTlWhOUjh5aGjV_EIjxPQVkhcaamRWPAFTl0wcu9F8SFedUhvbvScNCAf5uu0ry9y5FU.T_TPFA ujUdaUcDy.RWtS.HqlbumwiM.sjjY2dIuSadNM0wyXJjHMjGU1TqRWqtvFvaENXC7oY6CI80TsWV zle31the5tn_3iISLXX3hqCgtNhAFUQjX5OJacIU1edMEPuY20sR201K0UNWtledXxkPRFTC_1Yy 8.uEyCpIITogHZcLkfvGhbKNKgeX71.ipn8lkFxmzBrpnpKxbQH2JazDd3t09PAoLBZzklfgwL8C TmqQFWjhtsxQ0TgIHqq_lMXGY7ZFAMdQhbzNUQXJZB0c0cIvptd.FaYJuAv_sVz7fdj35VAWf1Ca rEAfPeTZrZ3thASf5Par1DparoyMToVXmtjKpKcGgCcGMHdiobhDS5WlqO6crpmrzOqsoGy1yYEC tmLKGZ8htJuapuHQ4uKSHNjh1URveXuSKe3gEFZI4Q9XyBYbY.Ha6H7xJy9dg54XSw69j4QDdFhX nKEFkk_QTu36Flne9FJurfmCmm0HWWv..KHSJgr_k43wPoeXKz3GHm1xotBMVqQLx9rFHKzUV9Lm 5SGs2Fm9RNpHpuvdw9gzk1Dt37B4dWu1s2Nw6SkejKvQo7Vy13ccwHMkw_k7UKojiWWVpEYoP954 3erbrLqpCf9Hp9QSzllLvPYzLo6M6SuoeH2HKR.bCeRkwoGylTIfQ Received: by 212.82.98.114; Fri, 23 Jan 2015 14:36:52 +0000 Date: Fri, 23 Jan 2015 14:36:52 +0000 (UTC) From: Oussema Benjemaa Reply-To: Oussema Benjemaa To: Andreas Joseph Krogh , "pgsql-jdbc@postgresql.org" Message-ID: <957727519.268446.1422023812302.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: Fw: mapping java objects with postgresql types MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_268445_504935843.1422023812302" Content-Length: 11989 X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org ------=_Part_268445_504935843.1422023812302 Content-Type: multipart/alternative; boundary="----=_Part_268444_1146499480.1422023812289" ------=_Part_268444_1146499480.1422023812289 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable i downloaded this JAR pgjdbc-ng-0.3-complete.jar ...i'm asking if there is = exemple for mapping java objects to postgresql ... with this api =C2=A0 Oussema Benjemaa=C2=A0=20 Sr Oracle DBA / Trading Software Development SunGard Financial Systems, Tunis E-mail : ousema2003@yahoo.fr Mobile : 0021622800497=20 On Thursday, 22 January 2015, 13:14, Andreas Joseph Krogh wrote: =20=20=20 P=C3=A5 torsdag 22. januar 2015 kl. 17:00:25, skrev Oussema Benjemaa : =C2=A0=C2=A0Hi,=C2=A0I want to pass=C2=A0 array of complex type from java i= nto plpgsql function=C2=A0I already tried using JDBC Array and Struct types= ,=C2=A0=C2=A0 but postgresql jdbc driver doesn't implement Struct yet so we= weren't able to get thinks work=C2=A0(in addition of the fact that. (Conne= ction.createStruct is not implemented in postgres JDBC)=C2=A0and actually a= s solution , i'm using PGObject to push the data to the database with some = diffuclts with the syntax and this is=C2=A0 mainly for types composites hav= ing bytea datatype ..=C2=A0but finally i=C2=A0 succeded to push data to the= database with the usage of the=C2=A0 text representation of the array of t= he type composite .=C2=A0But i'm strongly ,=C2=A0 looking for an alternativ= e of the PGObject , to avoid passing complex structures (array of types) fr= om jdbc with text representation.=C2=A0=C2=A0ALso i didn't found documentat= ion for passing such as complex structures including the the rules for text= representation of nested types .=C2=A0Could you please advice ...=C2=A0Ous= sema BenJemaaSenior DBA =C2=A0Try https://github.com/impossibl/pgjdbc-ng=C2=A0--Andreas Joseph Krog= hCTO / Partner - Visena ASMobile: +47 909 56 963andreas@visena.comwww.visen= a.com=C2=A0 =20=20=20= ------=_Part_268444_1146499480.1422023812289 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
i downloaded this JAR pgjdbc-ng-0.3-complete.jar= ...
i'm asking if there is exemple for mapping java = objects to postgresql ... with this api
 


Oussema Benjemaa 
Sr Oracle DBA / Tradi= ng Software Development
SunGard Financial Systems, Tunis
E-mail : ous= ema2003@yahoo.fr
Mobile : 0021622800497


On= Thursday, 22 January 2015, 13:14, Andreas Joseph Krogh <andreas@visena.= com> wrote:


=
P=C3=A5 torsdag 22. januar 2015 kl. 17:= 00:25, skrev Oussema Benjemaa <ousema2003@yahoo.fr>:
 
 = Hi,
 =
I want= to pass  array of complex type from java into plpgsql function
 =
I alre= ady tried using JDBC Array and Struct types,   but postgresql jdb= c driver doesn't implement Struct yet so we weren't able to get thinks work=
 =
(in ad= dition of the fact that. (Connection.createStruct is not implemented in pos= tgres JDBC)
 
and actually as solution , i'm using PGObject = to push the data to the database with some diffuclts with the syntax and th= is is  mainly for types composites having bytea datatype ..
 
but finally i  succeded to push data to t= he database with the usage of the  text representation of the array of= the type composite .
 
But i'm strongly ,  looking for an altern= ative 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 for text representation = of nested types .
 
Could you please advice ...
 
Oussema BenJemaa
Senior DBA
 
Try https://github.com/impossibl/pgjdbc-ng
 
--
Andr= eas Joseph Krogh
CTO / Partne= r - Visena AS
Mobile: +47 = 909 56 963
3D""
 


= ------=_Part_268444_1146499480.1422023812289-- ------=_Part_268445_504935843.1422023812302 Content-Type: image/png Content-Transfer-Encoding: base64 Content-Disposition: inline Content-ID: iVBORw0KGgoAAAANSUhEUgAAAIUAAAAYCAYAAADUIj6hAAAABHNCSVQICAgI fAhkiAAABzBJREFUaEPtmNFxHDcMhmVP3i1VECpvnjzkVIHWFfhcgVcVRKrA UgWRK/C6Al8H3lTgy0PGbzFdQc4VJP/HADs43q6kROeJNbOYgQACIAgCWJKn g4MZ5gxUGXh0U0b+SIuF9G+EWXj2Q15vbrE/NPtk9uub7Gfdt5mBx1NhqSEo 8HshjbEUtlO2yIM9tsx5dZP9rPt2MzDZFAqZE4LGcFjdsg3saQaHt7fY70X9 49OnaS+OZidDBkavD33157L4xaw2os+Mp/DAC10l2XhOCeStj0W5ajrJL8Wf Ci80Xgf9vVlrhg9yRONe/f7xI2vNsIcM7JwU9o6oGyJrLT8JOA1aX9sKP4wl 94bAniukEbo/n7YPmuTETzIab4Y9ZWCrKexd8M58lxPCvvD6aihfvexbEQoP YO8NQRO0JnddGO6FJYaVsBde7cXj7KRk4LsqDxQzCYeGsJNgaXZe+JXkyGgW INq3Gp+bHNILz+wEYs5qH1eJrouNrpDXtk4O6x1IvtD40GWyJYYdkF0jIbYZ lN16xygIgl9smbMDsmFdfAKb23xGB8H/mv3tOJfArs1kukk79DEPdQ5u0g1v CvvqKXIW8mZYW+F3Tg4r8HvZkQCCLydK8EFMQCe5N8RgL9mRG0SqQFuNvdE6 beSs0qPDBuCdg0+gvClso8SbTO4ki7mQzQqBrcMHQPwReg2wW8umEe/+L8T/ LEzBGF9nXjzZ46s+ITHvhegW8LL39xm6App7KYL/GE+vcYnFbJiP/0aYhdiC nRC7jaj7eiK2ETInC5PRF6LYkSN0+HabF75WuT6syCyI0YkVGGMvUC33AmfZ TDUEj8u6IVh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jQGoX0 ho0oj8RPou6TxHJdcT0NTcWkO0AnG7+uXsnHqcas/72wvWF+mSf7N/Watp9k TXoluzeS0fB99CcZ/hvhSZTfh99pispZOXL9KrGrARkNUMu9ITbScZWs7xOY Nt9pwxSZtYDsX/GE3xTkrXgwAsXmfud08FiTeC+m2/o7ppo+PTS/NBK5ARpD G5YHr++DpmVfreYdiX8mnp+DzPEG9WbqJON0JBenZofssxBA1gj5NXGvfJu/ Qh7HwQh/VDUEyUxCit5hH94QfKkEdu+GwK8BX0hvCF+D67xhjmXQCXMwJCZ+ olK0A1EKRCE4snsh42w8Mv/Zhxw9iD7Cjo7CyQC/KyF6oBfShL4PYgG+CHsY KyZxvxZSZBAgjhIzYDz+AbfD37GtbaoSKzgGt+lKfI/GZtay6vG4VXTpPsh+ IcQhOk9I7WYeP5AM3HZ9+DaSGIp9HIuuhuC4pCGGx+YD2fcc5tfIAA0h/Et4 /jX8zz4fWAasIf4UbR9Y6HO4d8jAnd4U0Y8ageuCB+c+H5R3CHU2mTMwZ+B/ y8DfSMBLLOYXVuEAAAAASUVORK5CYII= ------=_Part_268445_504935843.1422023812302 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc ------=_Part_268445_504935843.1422023812302--