Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 98445 invoked from network); 23 Nov 2009 15:34:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Nov 2009 15:34:40 -0000 Received: (qmail 77755 invoked by uid 500); 23 Nov 2009 15:34:39 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 77715 invoked by uid 500); 23 Nov 2009 15:34:39 -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 77707 invoked by uid 99); 23 Nov 2009 15:34:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 15:34:39 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_05,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of osya_bender@hotmail.com designates 65.55.90.84 as permitted sender) Received: from [65.55.90.84] (HELO snt0-omc2-s9.snt0.hotmail.com) (65.55.90.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 15:34:37 +0000 Received: from SNT124-DS17 ([65.55.90.71]) by snt0-omc2-s9.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 23 Nov 2009 07:34:16 -0800 X-Originating-IP: [75.147.47.165] X-Originating-Email: [osya_bender@hotmail.com] Message-ID: From: "OBender" To: References: In-Reply-To: Subject: constructor result mapping with primitives doesn't work Date: Mon, 23 Nov 2009 10:34:06 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0306_01CA6C28.7BEAFD90" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcpsUisLx0HzL6SJT+2iXklnEoTvKQAAC1Gw Content-Language: en-us X-OriginalArrivalTime: 23 Nov 2009 15:34:16.0448 (UTC) FILETIME=[6A90E800:01CA6C52] ------=_NextPart_000_0306_01CA6C28.7BEAFD90 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi All, There is one very strange issue. If there is a constructor with primitive argument, say long and you have a mapping with: --- public class T1 { final private long xxx; public T1( long xxx ) { this.xxx = xxx; } } --- The execution fails trying to find constructor with java.lang.Long type instead of primitive long type. Is this a bug or constructors with primitive types are not supported? Thanks. ------=_NextPart_000_0306_01CA6C28.7BEAFD90 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,

 

There is one very strange issue. If there is a = constructor with primitive argument, say long and you have a mapping = with:

<resultMap type=3D"T1" id=3D"T1Result">

        <constructor>

         &= nbsp;  <arg column=3D"xxx" javaType=3D"long" = />

        = </constructor>

    = </resultMap>

 

---

public class T1

{

         &= nbsp;      final private long xxx;

 

         &= nbsp;      public T1( long xxx )  {

         &= nbsp;           &n= bsp;          this.xxx =3D xxx;

         &= nbsp;      }

}

---

 

The execution fails trying to find constructor with java.lang.Long type instead of primitive long type.

 

Is this a bug or constructors with primitive types = are not supported?

 

Thanks.

------=_NextPart_000_0306_01CA6C28.7BEAFD90--