You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by HelpMePlz <su...@gmail.com> on 2008/05/02 08:08:37 UTC

Attribute "type" must be declared for element type "selectKey".

Hi to All


  i am getting this error  


Attribute "type" must be declared for element type "selectKey".


my sqlMap .xml code is 



<insert id="insertBooks" parameterClass="booksform">
<selectKey   resultClass="int"   type="pre"  keyProperty="bookid">
SELECT ADMINTEST.NEXTVAL AS bookid FROM DUAL
</selectKey>
insert into  IBATISADMINTEST (BOOKID,BOOKNAME , AUTHORNAME ,
AVAILABLEBOOKS,PUBLISHER,CATEGORY) 
values(#bookid#,#bookname#
,#authorname#,#availablebooks#,#publisher#,#category#)
</insert>



if any one know solution for this problem plz  give me reply .
-- 
View this message in context: http://www.nabble.com/Attribute-%22type%22-must-be-declared-for-element-type-%22selectKey%22.-tp16996705p16996705.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


RE: Attribute "type" must be declared for element type "selectKey".

Posted by Niels Beekman <n....@wis.nl>.
The attribute 'type' has recently been introduced. You are probably
using an older version of iBATIS or the DTD is not correct. What DTD are
you using in your sqlmaps?

Niels

-----Original Message-----
From: HelpMePlz [mailto:supriyanaidupelluru@gmail.com] 
Sent: Friday, May 02, 2008 8:09 AM
To: user-java@ibatis.apache.org
Subject: Attribute "type" must be declared for element type "selectKey".


Hi to All


  i am getting this error  


Attribute "type" must be declared for element type "selectKey".


my sqlMap .xml code is 



<insert id="insertBooks" parameterClass="booksform">
<selectKey   resultClass="int"   type="pre"  keyProperty="bookid">
SELECT ADMINTEST.NEXTVAL AS bookid FROM DUAL
</selectKey>
insert into  IBATISADMINTEST (BOOKID,BOOKNAME , AUTHORNAME ,
AVAILABLEBOOKS,PUBLISHER,CATEGORY) 
values(#bookid#,#bookname#
,#authorname#,#availablebooks#,#publisher#,#category#)
</insert>



if any one know solution for this problem plz  give me reply .
-- 
View this message in context:
http://www.nabble.com/Attribute-%22type%22-must-be-declared-for-element-
type-%22selectKey%22.-tp16996705p16996705.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.