ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Namespaces
Date Mon, 17 Sep 2007 21:19:09 GMT
There's a known issue that may be related.  If you do this, you must make
sure that your SqlMap XML files are specified in the proper order.  For
example, in Adam's situation you would need to ensure that the User
namespace is loaded before the Page namespace.

Jeff Butler

On 9/17/07, Fábio Pisaruk <pisaruk@gmail.com> wrote:
> Hey,
> I´ve noticed the same bug trying to extend a map defined in another
> namespace.
> I really think this is a bug.
> I am almost convinced this is not a bug related to extend but to sql map
> import.
> If you import the parent sqlMap followed by the child it should work.
> I haven´t tested it :-(
> On 9/17/07, Adam Zimowski <zimowski74@gmail.com> wrote:
> >
> > Hi,
> > With namespaces turned on, it doesn't allow me to use a map from
> > another namespace. Say my "Page" namespace would like to re-use
> > User.userMap. Is this by design? If so, what is a work around for not
> > having to define the same map multiple times?
> >
> > -adam
> >
> --
> Visto como se não executa logo a sentença sobre a má obra, o coração dos
> filhos dos homens está inteiramente disposto a praticar o mal.
> --Nerd´s sign
> If you have four classes, Everybody, Somebody, Anybody, and Nobody, if
> Somebody has a bug, it could be Anybody 's fault but Nobody really knows,
> while Everybody shares responsibility.
> "Programming today is a race between software engineers striving to build
> bigger and better idiot-proof programs, and the universe trying to build
> bigger and better idiots. So far, the universe is winning." - Rick Cook

View raw message