在ibatis中设置结果对象的属性时出错

时间:2016-04-04 06:39:42

标签: ibatis

我无法确定以下错误的解决方案

[sm.vo.BankVO@2329219a].  Cause: com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in sm/sql/sm.xml.  
--- The error occurred while applying a result map.  
--- Check the getbanktMap.  
--- The error happened while setting a property on the result object.  
--- Cause: java.sql.SQLSyntaxErrorException: ORA-01722: invalid number


public class BankVO implements Serializable{


    private String rol1,rol2,rol3,rol4,rol5,rol6,rol7,rol8,rol9,rol10;
//setters and getters

}

请帮助解决此问题

1 个答案:

答案 0 :(得分:0)

也许问题在于映射器。 Oracle错误代码ORA-01722表示“无效数字”,请按照日志中的说明检查您的映射器:

---检查getbanktMap。