ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: Question on parameter class
Date Thu, 28 Apr 2005 23:22:32 GMT
yes

On 4/28/05, Narasimha Prasad <prasadn@dbo2.com> wrote:
>  
>  
> 
> 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