Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 29992 invoked from network); 9 Feb 2010 10:36:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2010 10:36:16 -0000 Received: (qmail 96516 invoked by uid 500); 9 Feb 2010 10:36:15 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 96455 invoked by uid 500); 9 Feb 2010 10:36:14 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 96447 invoked by uid 99); 9 Feb 2010 10:36:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 10:36:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vikram.s@directi.com designates 122.182.1.139 as permitted sender) Received: from [122.182.1.139] (HELO smtp.directi.com) (122.182.1.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 10:36:05 +0000 Received: from lp-vikram.s-ubuntu (unknown [122.181.8.86]) by smtp.directi.com (Postfix) with ESMTPA id 7BF2446D840A for ; Tue, 9 Feb 2010 16:05:43 +0530 (IST) Message-ID: <4B713A84.1070201@directi.com> Date: Tue, 09 Feb 2010 16:05:48 +0530 From: Vikram Subbarao User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: java.util.UUID to postgres uuid column Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am using postgres db and would like to map a java.util.UUID to a postgres uuid column. Latest postgres driver supports mapping of this if i was directly creating my prepared statements but since i use ibatis inbetween, i am unable to achive this as ibatis does not seem to understand that java.util.UUID can be based down to jdbc. I could use typehandler if the db column was a VARCHAR, but since the postgres db is a 'uuid' type, i have no option but to use the driver supported option of using java.util.UUID, but it does not work with ibatis for me. Please help me if some one has a solution to this. Regards Vikram --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org