ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Parametric table name
Date Fri, 18 Feb 2005 03:33:04 GMT
Also be sure to set remapResults="true" in your select element.


On Thu, 17 Feb 2005 20:30:14 -0700, Brandon Goodin
<brandon.goodin@gmail.com> wrote:
> you would want to use the literal $tabPrefix$ notation.
> 
> Brandon
> 
> On Tue, 15 Feb 2005 17:06:53 +0100, Vincenzo Graziadei
> <vincenzo.graziadei@polaris-informatica.it> wrote:
> > > It's possible , with iBatis for Java, to have a dynamic table name, like
> > > this :
> > >
> > >       <select id="getRighe"
> > >                       resultMap="resultRighe"
> > >                       parameterClass="java.util.Map">
> > >               <![CDATA[
> > >               select *
> > >               from #tabPrefix#_righe
> > >               where IDUtente = #IDUtente#
> > >               ]]>
> > >
> > > Thank You
> > >
> > > Vincenzo Graziadei
> > >
> > >
> >
> >
>

Mime
View raw message