ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: sqp maps, namespaces a queries' IDs
Date Thu, 08 May 2008 21:02:49 GMT
No, if you enable namespaces, you must specify them when you're
executing queries. Of course you can create utility classes that do




From: fdmanana@gmail.com [mailto:fdmanana@gmail.com] On Behalf Of Filipe
David Manana
Sent: Thursday, May 08, 2008 10:57 PM
To: user-java@ibatis.apache.org
Subject: Re: sqp maps, namespaces a queries' IDs



So, even with false  (default) for the useStatementNamespaces setting, I
will be able to use the Namespace.queryName notation? right?

thanks a lot

On Thu, May 8, 2008 at 10:24 PM, Christopher Lamey
<clamey@localmatters.com> wrote:


Yes you can.

Please see page 10 of the iBATIS PDF, specifically the section on
useStatementNamespaces for details.


On 5/8/08 1:47 PM, "Filipe David Manana" <fdmanana@ieee.org> wrote:

> Hi,
> In my app I have several sql maps (each one in a separate xml file).
> sql map has a diferent purpose, so each one has a different namespace.
> It happens that I have different sql maps (different namespaces) with
> queries (select) that have the same ID. When I use SqlMapClient method
> queryForObject,
> can I specify something like "Example.getNames" as the query name?
> Example is the namespace and getNames is the query ID.
> cheers

Filipe David Manana,

"The cruellest lies are often told in silence." 

View raw message