Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 19914 invoked from network); 27 Jan 2006 17:14:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jan 2006 17:14:48 -0000 Received: (qmail 82049 invoked by uid 500); 27 Jan 2006 17:14:42 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 82029 invoked by uid 500); 27 Jan 2006 17:14:42 -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 82015 invoked by uid 99); 27 Jan 2006 17:14:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2006 09:14:42 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.51.44.37] (HELO fgwmail7.fujitsu.co.jp) (192.51.44.37) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2006 09:14:41 -0800 Received: from m4.gw.fujitsu.co.jp ([10.0.50.74]) by fgwmail7.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id k0RHEJvd012010 for ; Sat, 28 Jan 2006 02:14:19 +0900 (envelope-from taka-t@jp.fujitsu.com) Received: from s5.gw.fujitsu.co.jp by m4.gw.fujitsu.co.jp (8.12.10/Fujitsu Domain Master) id k0RHEIHC017945 for ; Sat, 28 Jan 2006 02:14:18 +0900 (envelope-from taka-t@jp.fujitsu.com) Received: from s5.gw.fujitsu.co.jp (s5 [127.0.0.1]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id 9554E1B8057 for ; Sat, 28 Jan 2006 02:14:18 +0900 (JST) Received: from ml8.s.css.fujitsu.com (ml8.s.css.fujitsu.com [10.23.4.198]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id 5EA861B8051 for ; Sat, 28 Jan 2006 02:14:18 +0900 (JST) Received: from ml8.css.fujitsu.com (ml8 [127.0.0.1]) by ml8.s.css.fujitsu.com (Postfix) with ESMTP id 3F3624B87C2; Sat, 28 Jan 2006 02:14:18 +0900 (JST) Received: from [127.0.0.1] (sb229162.sb.tfl.fujitsu.com [10.131.229.162]) by ml8.s.css.fujitsu.com (Postfix) with ESMTP id D049E4B87A4; Sat, 28 Jan 2006 02:14:17 +0900 (JST) Date: Sat, 28 Jan 2006 02:14:14 +0900 From: Toshiaki Takashima To: user-java@ibatis.apache.org, lmeadors@apache.org Subject: Re: TypeHandler for java primitive In-Reply-To: References: <20060128013052.747F.TAKA-T@jp.fujitsu.com> Message-Id: <20060128021022.7482.TAKA-T@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.12.01 [ja] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi, > Why not just use Integer? I think it is a little bit messy to calculate the numeric property when you use Integer because you have to use Integer.intValue method. Don't you think so? > Why not just use Integer? > > Larry > > > On 1/27/06, Toshiaki Takashima wrote: > > Hi, > > > > > > > > You know, when you set resultClass properties to java primitive type > > such as "int", NullPointerException occures if its corresponding Table > > Column value is null. > > > > You can suppress those Exception by setting "nullValue" property to > > each column in SQL Map xml. But, it is very messy work. > > > > So, I want to set TypeHandler for int type property in SQL Map Config. > > But my attempt failed. I'm sorry but TypeHandler for java primitive type > > doesn't work. > > > > Is it a bug or iBATIS policy? > > > > > > > > thanks, > > > > > > --------------------------------------------------------- > > 第二ソリューションビジネス統括部・第一ソリューション部 > > > > 高島俊昭 > > mailto:taka-t@jp.fujitsu.com > > 内線 :7576-4407 > > > > 株式会社富山富士通 > > 〒939-2392 富山県婦負郡八尾町保内2-2-1 > > TEL 076-455-3131 > > FAX 076-455-0935 > > --------------------------------------------------------- > > > > > > --------------------------------------------------------- 第二ソリューションビジネス統括部・第一ソリューション部 高島俊昭 mailto:taka-t@jp.fujitsu.com 内線 :7576-4407 株式会社富山富士通 〒939-2392 富山県婦負郡八尾町保内2-2-1 TEL 076-455-3131 FAX 076-455-0935 ---------------------------------------------------------