javabean setter Overloading cause cglib.beans.BulkBeanException
---------------------------------------------------------------
Key: IBATIS-90
URL: http://issues.apache.org/jira/browse/IBATIS-90
Project: iBatis for Java
Type: Bug
Components: SQL Maps
Versions: 2.0.9
Environment: Winows XP
Reporter: Leo Tu
Hi,
if my javabean overloading would cause problem:
"Caused by: net.sf.cglib.beans.BulkBeanException
at
com.ibatis.dao.client.template.SqlMapDaoTemplate.queryForPaginatedList(SqlMapDaoTemplate.java:274)"
i.e,
Bean:
public void setFrmSum(java.lang.Integer frmSum) {
this.frmSum = frmSum;
}
public void setFrmSum(java.lang.String frmSumStr) {
if (frmSumStr != null && frmSumStr.trim().length() > 0) {
this.frmSum = new java.lang.Integer(frmSumStr.trim());
}
}
Sqlmap.xml:
<resultMap id="firm-result" class="xxx.Firm">
....
<result property="frmSum" column="FRM_SUM" jdbcType="INTEGER"/>
...
</resultMap>
<select id="xxx" parameterClass="xxx.FirmPk" resultMap="firm-result">
select * from firm
</select>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira