在user.xml文件中写查询全部user表信息时 <select id="getAllUser" resultClass="User"> select * from user </select>
会报错 --- The error occurred in User.xml. --- The error occurred while applying a result map. --- Check the getAllUser-AutoResultMap. --- Check the result mapping for the 'type' property.
我想是因为我设置的返回类型是User。但是User对象中的type属性不能够接收,ibatis查询User表时查到的typeName 我尝试着 <select id="getAllUser" resultClass="User"> select userID,type.typeName from user </select> 会报错说: --- Cause: java.sql.SQLException: ORA-00904: "type"."typeName":标识符无效 有什么解决方法呀??