This is a crude (but effective) hack: Move the stuff that needs to be
loaded first into it's own file, then load it before the others that
need it.

Larry


On 9/18/07, Jeff Butler <[EMAIL PROTECTED]> wrote:
> It is logged here:
>
> http://issues.apache.org/jira/browse/IBATIS-135
>
> But there's not much movement - it is difficult to fix in the current code
> base.
>
> Jeff Butler
>
>
>
> On 9/18/07, Adam Zimowski <[EMAIL PROTECTED]> wrote:
> > Yep, that's the problem. If I move User.xml up to load it before
> > Page.xml I can refer to User.userResultMap from inside Page.xml.
> >
> > Does anybody know if this is logged as an issue and being worked on?
> >
> > -adam
> >
> > On 9/17/07, Jeff Butler <[EMAIL PROTECTED]> wrote:
> > > 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED] > 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
> > >
> > >
> >
>
>

Reply via email to