比如我在ibaits映射文件中定义如下:
<!-- 别名 -->
<![CDATA[
SELECT * FROM TEST_QMGR_CHILD WHERE QMID =#qmId#
]]>
<delete id="deleteTestQmgrChildByID" parameterClass="java.lang.Long">
<![CDATA[
delete from TEST_QMGR_CHILD where QMID = #qmId#
]]>
</delete>
SELECT * FROM TEST_QMGR_CHILD WHERE QMID =#qmId#
我指定了一个#qmID#参数名称, 我在后台调用参数的时候,传递一个Long类型的值过来,但是我启动时候就报错了,如果不是一个对象而且单独的一个值,该怎么传值过来?
错误信息:
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Attribute "resultParameter" must be declared for element type "select".
Caused by: org.xml.sax.SAXParseException: Attribute "resultParameter" must be declared for element type "select".