Yes, you can do that, but there is currently a limitation that the sqlmap that you are referring to has to be included in the sqlmapconfig before the sql map that refers to it.
Larry On 10/13/05, Voorhoeve, Niels {PBG} <[EMAIL PROTECTED]> wrote: > Hey All, > > I was hoping that I would be able to use the namespace feature to refer to a > select in another file. Apparently this is not doable. > Would it be hard to implement? Would it cause potential problems with > circular dependencies (resultmap -> select -> resultmap)? > > Niels > > In PurchaseHeader.xml: > <sqlMap namespace="PurchaseHeader"> > etc... > <resultMap id="PurchaseHeaderAndDetails-result" > class="PurchaseHeader" extends="PurchaseHeader-result"> > <result property="purchaseDetails" > column="order_no" > select="PurchaseDetail.getPurchaseDetail" > /> > </resultMap> > etc... > </sqlMap> > > In PurchaseDetail.xml: > <sqlMap namespace="PurchaseDetail"> > ...<select id="getPurchaseDetail" ...></select> > </sqlMap >