ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NathanM <nathan.mel...@infdig.com>
Subject Multiple parameters in sqlmap parameters.
Date Mon, 01 Jun 2009 21:45:19 GMT

Please excuse me if this turns out to be a dumb question. 

Is it possible to do something simple like pass two int parameters into a

These are the examples I see in the manual:

One simple type:

<statement id="getProduct" parameterClass="System.Int32">
  select * from PRODUCT where PRD_ID = #value#

One complex type:

<parameterMap id="insert-product-param" class="Product">
  <parameter property="description" />
  <parameter property="id"/>

<statement id="insertProduct" parameterMap="insert-product-param">
  insert into PRODUCT (PRD_DESCRIPTION, PRD_ID) values (?,?);

One complex type inline:
<statement id="insertProduct" parameterClass="Product">
  values (#id:int#, #description:VarChar#)

Is there any example for two simple types? Or do I need to come up with a
class that has two int properties so I can pass int two ints?

View this message in context: http://www.nabble.com/Multiple-parameters-in-sqlmap-parameters.-tp23822891p23822891.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message