<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang 
    $Date: 2015-6-10 下午04:25:59  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    faa.file_name,
                    faa.file_path
                FROM
                    con_contract_content cc,
                    fnd_atm_attachment_multi m,
                    fnd_atm_attachment faa
                WHERE
                    cc.content_id   = ${/parameter/@content_id} AND
                    cc.content_id   = m.table_pk_value AND
                    m.table_name    = 'CON_CONTRACT_CONTENT' AND
                    m.attachment_id = faa.attachment_id
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="file_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FILE_NAME"/>
        <bm:field name="file_path" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FILE_PATH"/>
    </bm:fields>
</bm:model>
