Thanks, I was specifying the mapped file name ..

________________________________

From: Clough, Samuel (USPC.PRG.Atlanta)
[mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 11:44 AM
To: [email protected]
Subject: RE: statement from another mapped file

 

As long as you are loading all the xml files, it should work just fine.
Statement ids are unique globally, so you do not need to prefix them
with the namespace.

 

________________________________

From: Dorin Manoli [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 6:26 AM
To: [email protected]
Subject: statement from another mapped file

Hi guys, how can I call a mapped statement from another mapped file.

I want to do  like here :

<resultMap id="select-category-result" class="Category">

<result property="Id" column="CAT_ID"/>

<result property="Description" column="CAT_DESCRIPTION"/>

<result property="ProductList" column="CAT_ID"
select="selectProductsByCatId"/>

</resultMap>

<resultMap id="select-product-result" class="Product">

<result property="Id" column="PRD_ID"/>

<result property="Description" column="PRD_DESCRIPTION"/>

</resultMap>

<resultMaps>

<statements>

<!-- This statement executes 1 time -->

<statement id="selectCategory" parameterClass="int"
resultMap="select-category-result">

select * from CATEGORY where CAT_ID = #value#

</statement>

 

 

Exept that selectProductsByCatId statement will be in another file.

At the moment I got an exception

 

________________________________

Princeton Retirement Group, Inc - Important Terms 

This E-mail is not intended for distribution to, or use by, any person
or entity in any location where such distribution or use would be
contrary to law or regulation, or which would subject Princeton
Retirement Group, Inc. or any affiliate to any registration requirement
within such location. 

This E-mail may contain privileged or confidential information or may
otherwise be protected by work product immunity or other legal rules. No
confidentiality or privilege is waived or lost by any mistransmission.
Access, copying or re-use of information by non-intended or
non-authorized recipients is prohibited. If you are not an intended
recipient of this E-mail, please notify the sender, delete it and do not
read, act upon, print, disclose, copy, retain or redistribute any
portion of this E-mail. 

The transmission and content of this E-mail cannot be guaranteed to be
secure or error-free. Therefore, we cannot represent that the
information in this E-mail is complete, accurate, uncorrupted, timely or
free of viruses, and Princeton Retirement Group, Inc. cannot accept any
liability for E-mails that have been altered in the course of delivery.
Princeton Retirement Group, Inc. reserves the right to monitor, review
and retain all electronic communications, including E-mail, traveling
through its networks and systems (subject to and in accordance with
local laws). If any of your details are incorrect or if you no longer
wish to receive mailings such as this by E-mail please contact the
sender by reply E-mail. 

________________________________

Reply via email to