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 <vish...@ivycomptech.com> wrote: > > For a constructor defined like this : > > public UserProfile(int id) > { > this.id=id; > } > > and resultmap having : > <constructor> > <idArg column="id" javaType="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-type-tp27025441p27025441.html > Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org > For additional commands, e-mail: user-java-h...@ibatis.apache.org > >