<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: chenlingfeng  
    $Date: 2017-6-8 下午3:18:42  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HN_ATM_COMPLEMENT_ATM">
    <bm:fields>
        <bm:field name="atm_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ATM_ID" prompt="HN_ATM_COMPLEMENT_ATM.ATM_ID"/>
        <bm:field name="record_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RECORD_ID" prompt="HN_ATM_COMPLEMENT_ATM.RECORD_ID"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="HN_ATM_COMPLEMENT_ATM.DESCRIPTION"/>
        <bm:field name="file_name" expression="(bgfl_special_parameter_pkg.get_attachment_file_names(p_document_table =&gt; &apos;HN_ATM_COMPLEMENT_ATM&apos;,p_document_id =&gt; t1.atm_id))" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
        <o:sequence-pk/>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="atm_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="t1.record_id = ${@record_id}"/>
    </bm:data-filters>
</bm:model>
