Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3EAC69FB2FC for ; Mon, 5 Feb 2007 11:28:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 61922-03 for ; Mon, 5 Feb 2007 11:28:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id 6FCB19FB2E8 for ; Mon, 5 Feb 2007 11:28:34 -0400 (AST) Received: by mail63.csoft.net (Postfix, from userid 1112) id D1D41FD3A; Mon, 5 Feb 2007 10:28:30 -0500 (EST) Date: Mon, 5 Feb 2007 10:28:30 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: BillR cc: pgsql-jdbc@postgresql.org Subject: Re: meta data domains ibatis abator etc In-Reply-To: <45C64CA8.5040304@williamrosmus.com> Message-ID: References: <45C64CA8.5040304@williamrosmus.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/30 X-Sequence-Number: 16586 On Sun, 4 Feb 2007, BillR wrote: > Hi, > Unfortunately it seems the Postgres JDBC driver doesn't return the base > type for domains... the data type shows up as 'OTHER'. Now that Ibatis is > pretty big, there is an Apache/Ibatis code generating tool you can use to > generate most of the sql map files you need. However it relies on being able > to find the correct jdbc data type. > > Is there something I need to know in order to get the JDBC driver to return > the correct base types? How to write some code? Unfortunately the JDBC driver knows nothing about domains. Pretty much everything you'd need to modify should be in org.postgresql.jdbc2.TypeInfoCache.java to be able to make it see through domains. Kris Jurka