ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toshiaki Takashima <tak...@jp.fujitsu.com>
Subject should "parameterClass" be specified in map xml?
Date Wed, 07 Dec 2005 16:48:52 GMT
Hi there

I defined sql Map definition for select statement
as follows : 

 <select id="getBgList" resultClass="Result">
      SEQNO  as seqNo,
      NAME   as name
    FROM testtable
      NME like #paraName#

This Statement works, but following insert statement
fails when null(java) value is specified to any parameters
even if you use valid Bean Class which has correct
properties :

   INSERT INTO testtable

But statement below works fine even if null parameters are
contained : 

 <statement parameterClass="Parameter">
   INSERT INTO testtable

So, I wonder I must specify parameterMap or parameterClass for
every SQL Map definition. 

I thought it is just a performance issue for whether you should
specify parameterMap / parameter Class or not.

Should I always specify parameterMap / parameterClass attribute?

Please teach me !


View raw message