ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Narasimha Prasad" <pras...@dbo2.com>
Subject Question on parameter class
Date Thu, 28 Apr 2005 23:15:52 GMT
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
 

Mime
View raw message