You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Morten Schmidt <sc...@knowledgelab.sdu.dk> on 2005/06/01 15:19:18 UTC

Dynamic Table in parameterClass?

Hi 
 
I need to do something like: 
 
public class myClass 
{ 
string tableName; 
string myText; 
.... 
..... // Sets and Gets 
} 
 
 
<statements> 
<select id=coolSelect parameterClass=myClass resultClass=string> 
select * from #tableName# 
</select> 
</staements> 
 
(I hope this makes sense...) 
 
I get an error because the tableName is aprsed with ' around it (I
think...) 
How can I do this? 
 
/morten 


Re: Dynamic Table in parameterClass?

Posted by Roberto R <ro...@gmail.com>.
Use $tableName$



On 6/1/05, Morten Schmidt <sc...@knowledgelab.sdu.dk> wrote:
> 
>  Hi 
>  I need to do something like: 
>  public class myClass 
> { 
> string tableName; 
> string myText; 
> .... 
> ..... // Sets and Gets 
> } 
>   <statements> 
> <select id="coolSelect" parameterClass="myClass" resultClass="string"> 
> select * from #tableName# 
> </select> 
> </staements> 
>  (I hope this makes sense...) 
>  I get an error because the tableName is aprsed with ' around it (I 
> think...) 
> How can I do this? 
>  /morten 
>