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

Reply via email to