I think this should work....

What is the error that you are receiving? And why do you think that this is a circular relationship since they are two different result maps?

Nathan

On Oct 13, 2005, at 12:57 PM, Voorhoeve, Niels {PBG} 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


Reply via email to