Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 66363 invoked from network); 5 Jan 2010 15:06:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2010 15:06:38 -0000 Received: (qmail 53634 invoked by uid 500); 5 Jan 2010 15:06:37 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 53585 invoked by uid 500); 5 Jan 2010 15:06:37 -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 53577 invoked by uid 99); 5 Jan 2010 15:06:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 15:06:37 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of clinton.begin@gmail.com designates 74.125.92.145 as permitted sender) Received: from [74.125.92.145] (HELO qw-out-1920.google.com) (74.125.92.145) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2010 15:06:29 +0000 Received: by qw-out-1920.google.com with SMTP id 14so3124669qwa.60 for ; Tue, 05 Jan 2010 07:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=zfAzE2Ma7uDHXi9HZ3kVzSRJMJDptO8ITLb/+wQSBs4=; b=ey/YQGlKqX3B1p6gpDj9AlDiFSaURVXVxFfz5nUO/KOEm8XIFJEziVTPFP/Y6yLV8O OLxQiEzKhEh7LdQgF4I+i3zlQcBUS4fAlSOUBYNCiLfloSKrKFSlaQ3MIZHlxAzjezux QmxvKWBonmpl66YPtz8A9U3IZlLAfHMpYi+Cc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fSWJlpN0B9CSpwxs0K4ViYpaynUs3ty6S6ldHC6SwlPDEz+MD7o8yofRmN4L7K9+sU SSslE/S63U8YZfxWTGNy6pwVDvBgpk4aAEvO2x9CZA7iPCat8L92MKlzyK7BvJ5m8xTY J8TmodTtMvtv2jckusIwzio1JFDJE98TcnKWI= MIME-Version: 1.0 Received: by 10.224.18.23 with SMTP id u23mr12035780qaa.381.1262703966557; Tue, 05 Jan 2010 07:06:06 -0800 (PST) In-Reply-To: <27025441.post@talk.nabble.com> References: <27025441.post@talk.nabble.com> Date: Tue, 5 Jan 2010 08:06:06 -0700 Message-ID: <16178eb11001050706k114b61c0jd932507ec55d0cd5@mail.gmail.com> Subject: Re: Mapping int type in constructor of resultMap type From: Clinton Begin To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=00c09f88d25e621b3a047c6c2d14 --00c09f88d25e621b3a047c6c2d14 Content-Type: text/plain; charset=ISO-8859-1 Are you running Beta 7? I know I looked into that issue, and I either fixed it, or determined that it wasn't possible. I recall something weird about constructor reflection with primitive types. Try Beta 7, if that doesn't work, I'll look through the commit log to see what I had to say about that. Clinton On Tue, Jan 5, 2010 at 1:59 AM, vishalj wrote: > > For a constructor defined like this : > > public UserProfile(int id) > { > this.id=id; > } > > and resultmap having : > > > > > is not working and instead giving Exception as : > Error instantiating class com.xyz.beans.UserProfile with invalid types > (Integer,) or values (1,). Cause: java.lang.NoSuchMethodException: > com.xyz.beans.UserProfile.(java.lang.Integer). > > > -- > View this message in context: > http://old.nabble.com/Mapping-int-type-in-constructor-of-resultMap-type-tp27025441p27025441.html > Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org > For additional commands, e-mail: user-java-help@ibatis.apache.org > > --00c09f88d25e621b3a047c6c2d14 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Are you running Beta 7?=A0 I know I looked into that issue, and I either fi= xed it, or determined that it wasn't possible.=A0 I recall something we= ird about constructor reflection with primitive types.=A0 Try Beta 7, if th= at doesn't work, I'll look through the commit log to see what I had= to say about that.

Clinton

On Tue, Jan 5, 2010 at 1:59 A= M, vishalj <VishalJ@ivycomptech.com> wrote:

For a constructor defined like this :

public UserProfile(int id)
{
=A0 =A0 =A0 =A0this.id=3D= id;
}

and resultmap having :
<constructor>
=A0 =A0 =A0 =A0<idArg column=3D"id" javaType=3D"int"= ;/>
</constructor>

is not working and instead giving Exception as :
Error instantiating class com.xyz.beans.UserProfile with invalid types
(Integer,) or values (1,). Cause: java.lang.NoSuchMethodException:
com.xyz.beans.UserProfile.<init>(java.lang.Integer).


--
View this message in context: http://old.nabble.com/Mapping-int-type-in-constructor-of-resultMap-t= ype-tp27025441p27025441.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


--00c09f88d25e621b3a047c6c2d14--