ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Voorhoeve, Niels {PBG}" <niels.voorho...@pepsi.com>
Subject Namespaces for Select Attribute
Date Thu, 13 Oct 2005 18:57:32 GMT
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

Mime
View raw message