Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4FF209F9606 for ; Tue, 21 Aug 2007 01:44:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 31680-05 for ; Tue, 21 Aug 2007 01:43:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web32001.mail.mud.yahoo.com (web32001.mail.mud.yahoo.com [68.142.207.98]) by postgresql.org (Postfix) with SMTP id 2D1A79F96D1 for ; Tue, 21 Aug 2007 01:43:58 -0300 (ADT) Received: (qmail 67816 invoked by uid 60001); 21 Aug 2007 04:43:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=lZsqHbrNqABj7VIgE9ZPKqnnsYmjU5GH4DHL/y5yANFIa5+YWo51y9qrMSgg+DdRKT92H6kEHiEBL7OFjEhTgtjsFNKxkHZPDEyB+1Euc/C/LyQpp5SKdXf07hZ5934VdvvrfPVPYsbPkTKCtFWAWhg4YwB4pYjsnHRDHo48KLU=; X-YMail-OSG: VCPtyxQVM1nnxYNxq9Yg0QR_XMsoNqAcn605lZvSo5I51N8.OVRZMqRqGXqp6bHgomOGbvhYCOqvDT1wA3syRdumL5k7KJQrgGywDU_5aXHDg..ij2KfrUsebMeqMQ-- Received: from [71.242.41.81] by web32001.mail.mud.yahoo.com via HTTP; Mon, 20 Aug 2007 21:43:56 PDT Date: Mon, 20 Aug 2007 21:43:56 -0700 (PDT) From: "j.random.programmer" Subject: User Defined Types -- Using inet/cdr from JDBC ? To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <214064.66714.qm@web32001.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.308 tagged_above=0 required=5 tests=AWL=1.307, BAYES_50=0.001 X-Spam-Level: * X-Archive-Number: 200708/85 X-Sequence-Number: 17398 Hi all: I have recently released my O/R mapping tool (molly) at: www.mollypages.org/dbo Currently, this tool does not support any postgres specific types. So, when doing the O/R mapping, if the JDBC Meta Data returns: java.sql.Types.OTHER (1111), the O/R tool gives up and says: ---- Exception in thread "main" java.sql.SQLException: This framework does not understand/support columns of this type. [java.sql.Type: 1111] ----- Ok so far, so good (or bad). But now I do have a need to use: 1) inet, cdr types 2) point, circle etc types Suppose, I have: create table test (my_ip_address inet); Looking over the JDBC docs, I see that I may to say something like (in java): 1 ResultSet rs = stmt.executeQuery("select * from test"); 2 Map map = new HashMap(); 3 map.put("inet", foo.class); //string -> user defined class 4 rs.next(); 5 Object o = rs.getObject(1, map); The program does not get too far. I get: Exception in thread "main" org.postgresql.util.PSQLException: Method org.postgresql.jdbc3.Jdbc3ResultSet.getObjectImpl(int,Map) is not yet implemented. Any comments on the current/future ability to use inet/cdr types in this way ? I'm guessing I can instead use PGpoint etc., but what about inet/cdr ? Best regards, --j ____________________________________________________________________________________Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/