You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Ryan Shelley <12...@gmail.com> on 2008/02/21 10:17:36 UTC
Abator: Could not find SQL statement to include with refid
I apologize if this is already in a JIRA issue, but for some reason the JIRA
site isn't loading for me tonight.
I was able to run Abator to generate my iBATIS classes and sql maps,
however, when I run my webapp, I receive the following exception:
java.lang.RuntimeException: Could not find SQL statement to include with
refid 'ballots.abatorgenerated_Example_Where_Clause'
When I inspect my sql map, I can see it doesn't seem to be picking up the
"ballots" namespace in the sqlMap object. If I remove all of the instances
of "ballots." from the refids, it works fine, however, the next time I build
my sql map files from Abator, they are added back in. Is there a way to
either 1) get the namespace to be recognized, or 2) remove the namespace
from all of the refids in the sql map files?
I'm using Abator 1.0.0 and iBATIS 2.3
Thanks!
Re: Abator: Could not find SQL statement to include with refid
Posted by Ryan Shelley <12...@gmail.com>.
Ah! Well, that would explain it! Thanks for the tip!
-Ryan
On Thu, Feb 21, 2008 at 9:09 AM, Jared Blitzstein <
mailing-list@blitzstein.net> wrote:
> It doesn't go in abator, it goes in your sqlMapConfig where you register
> your sqlmaps.
>
> > Hi Graeme,
> >
> > Thanks for the prompt response. Does that go inside the abatorContext
> > or abatorConfiguration tag? I don't see this setting documented at
> > the Abator site (http://ibatis.apache.org/docs/tools/abator/).
> >
> > Thanks!
> >
> > On Thu, Feb 21, 2008 at 1:35 AM, Graeme J Sweeney
> > <ibatis.user@gjsweeney.com <ma...@gjsweeney.com>> wrote:
> >
> > On Thu, 21 Feb 2008, Ryan Shelley wrote:
> >
> > > Is there a way to
> > > either 1) get the namespace to be recognized, or 2) remove the
> > namespace
> >
> > <sqlMapConfig>
> > <settings
> > useStatementNamespaces="true"
> > />
> > </sqlMapConfig>
> >
> > --
> > Graeme -
> >
> >
>
>
Re: Abator: Could not find SQL statement to include with refid
Posted by Jared Blitzstein <ma...@blitzstein.net>.
It doesn't go in abator, it goes in your sqlMapConfig where you register
your sqlmaps.
> Hi Graeme,
>
> Thanks for the prompt response. Does that go inside the abatorContext
> or abatorConfiguration tag? I don't see this setting documented at
> the Abator site (http://ibatis.apache.org/docs/tools/abator/).
>
> Thanks!
>
> On Thu, Feb 21, 2008 at 1:35 AM, Graeme J Sweeney
> <ibatis.user@gjsweeney.com <ma...@gjsweeney.com>> wrote:
>
> On Thu, 21 Feb 2008, Ryan Shelley wrote:
>
> > Is there a way to
> > either 1) get the namespace to be recognized, or 2) remove the
> namespace
>
> <sqlMapConfig>
> <settings
> useStatementNamespaces="true"
> />
> </sqlMapConfig>
>
> --
> Graeme -
>
>
Re: Abator: Could not find SQL statement to include with refid
Posted by Ryan Shelley <12...@gmail.com>.
Hi Graeme,
Thanks for the prompt response. Does that go inside the abatorContext or
abatorConfiguration tag? I don't see this setting documented at the Abator
site (http://ibatis.apache.org/docs/tools/abator/).
Thanks!
On Thu, Feb 21, 2008 at 1:35 AM, Graeme J Sweeney <ib...@gjsweeney.com>
wrote:
> On Thu, 21 Feb 2008, Ryan Shelley wrote:
>
> > Is there a way to
> > either 1) get the namespace to be recognized, or 2) remove the namespace
>
> <sqlMapConfig>
> <settings
> useStatementNamespaces="true"
> />
> </sqlMapConfig>
>
> --
> Graeme -
>
Re: Abator: Could not find SQL statement to include with refid
Posted by Graeme J Sweeney <ib...@gjsweeney.com>.
On Thu, 21 Feb 2008, Ryan Shelley wrote:
> Is there a way to
> either 1) get the namespace to be recognized, or 2) remove the namespace
<sqlMapConfig>
<settings
useStatementNamespaces="true"
/>
</sqlMapConfig>
--
Graeme -