ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vishalj <Vish...@ivycomptech.com>
Subject Mapping int type in constructor of resultMap type
Date Tue, 05 Jan 2010 08:59:19 GMT

For a constructor defined like this :

public UserProfile(int id) 

and resultmap having :
	<idArg column="id" javaType="int"/>

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:

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

View raw message