I have a parameter class which looks like

 

Class A

{

    String j 

    String k

   

    Instance of Class B

}

 

 

 

Class B

{

    String x

    String y

}

 

 

Is this supported by Ibatis ?  Can I use it in the SQL map as shown below ?

 

<select id="selectQuery" parameterClass="A">

  SELECT

   ---

   ---

  FROM

   --

   --

  WHERE

 

  <isNotEmpty prepend="AND" property="B.x">

    do something

  </isNotEmpty>

 <isNotEmpty prepend="AND" property="B.y">

    do something

  </isNotEmpty>

 

</select>

 

 

Thanks,

Prasad

 

 


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.3 - Release Date: 4/25/2005