<?xml version="1.0" encoding="UTF-8"?>
<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="CON_CONTRACT_BP">
    <bm:fields>
        <bm:field name="record_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RECORD_ID" prompt="CON_CONTRACT_BP.RECORD_ID"/>
        <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID" prompt="CON_CONTRACT_BP.CONTRACT_ID"/>
        <bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY" prompt="CON_CONTRACT_BP.BP_CATEGORY"/>
        <bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="CON_CONTRACT_BP.BP_ID"/>
        <bm:field name="bank_branch_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_BRANCH_NAME" prompt="CON_CONTRACT_BP.BANK_BRANCH_NAME"/>
        <bm:field name="bank_account_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_ACCOUNT_NAME" prompt="CON_CONTRACT_BP.BANK_ACCOUNT_NAME"/>
        <bm:field name="bank_account_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_ACCOUNT_NUM" prompt="CON_CONTRACT_BP.BANK_ACCOUNT_NUM"/>
        <bm:field name="ratio" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RATIO" prompt="CON_CONTRACT_BP.RATIO"/>
        <bm:field name="amount" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AMOUNT" prompt="CON_CONTRACT_BP.AMOUNT"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="CON_CONTRACT_BP.ENABLED_FLAG"/>
        <bm:field name="ref_v01" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V01" prompt="CON_CONTRACT_BP.REF_V01"/>
        <bm:field name="ref_v02" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V02" prompt="CON_CONTRACT_BP.REF_V02"/>
        <bm:field name="ref_v03" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V03" prompt="CON_CONTRACT_BP.REF_V03"/>
        <bm:field name="ref_v04" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V04" prompt="CON_CONTRACT_BP.REF_V04"/>
        <bm:field name="ref_v05" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V05" prompt="CON_CONTRACT_BP.REF_V05"/>
        <bm:field name="ref_n01" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N01" prompt="CON_CONTRACT_BP.REF_N01"/>
        <bm:field name="ref_n02" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N02" prompt="CON_CONTRACT_BP.REF_N02"/>
        <bm:field name="ref_n03" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N03" prompt="CON_CONTRACT_BP.REF_N03"/>
        <bm:field name="ref_n04" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N04" prompt="CON_CONTRACT_BP.REF_N04"/>
        <bm:field name="ref_n05" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N05" prompt="CON_CONTRACT_BP.REF_N05"/>
        <bm:field name="ref_d01" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D01" prompt="CON_CONTRACT_BP.REF_D01"/>
        <bm:field name="ref_d02" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D02" prompt="CON_CONTRACT_BP.REF_D02"/>
        <bm:field name="ref_d03" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D03" prompt="CON_CONTRACT_BP.REF_D03"/>
        <bm:field name="ref_d04" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D04" prompt="CON_CONTRACT_BP.REF_D04"/>
        <bm:field name="ref_d05" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D05" prompt="CON_CONTRACT_BP.REF_D05"/>
        <bm:field name="credit_line_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CREDIT_LINE_ID" prompt="CON_CONTRACT_BP.CREDIT_LINE_ID"/>
        <bm:field name="bp_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS" prompt="CON_CONTRACT_BP.BP_CLASS"/>
        <bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="CON_CONTRACT_BP.BP_NAME"/>
        <bm:field name="id_card_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ID_CARD_NO" prompt="CON_CONTRACT_BP.ID_CARD_NO"/>
        <bm:field name="repurchase_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REPURCHASE_TYPE" prompt="CON_CONTRACT_BP.REPURCHASE_TYPE"/>
        <bm:field name="repurchase_des" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REPURCHASE_DES" prompt="CON_CONTRACT_BP.REPURCHASE_DES"/>
        <bm:field name="repurchase_price" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REPURCHASE_PRICE" prompt="CON_CONTRACT_BP.REPURCHASE_PRICE"/>
        <bm:field name="repurchase_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REPURCHASE_FLAG" prompt="CON_CONTRACT_BP.REPURCHASE_FLAG"/>
        <bm:field name="contract_seq" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_SEQ" prompt="CON_CONTRACT_BP.CONTRACT_SEQ"/>
        <bm:field name="bp_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_TYPE" prompt="CON_CONTRACT_BP.BP_TYPE"/>
        <bm:field name="contact_info_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTACT_INFO_ID" prompt="CON_CONTRACT_BP.CONTACT_INFO_ID"/>
        <bm:field name="bp_code" expression="(select bp_code from hls_bp_master where bp_id=t1.bp_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="bp_category_n" expression="(select description from hls_bp_category where bp_category=t1.bp_category)" forInsert="false" forUpdate="false"/>
        <bm:field name="bp_type_n" expression="(select description from hls_bp_type where bp_type=t1.bp_type)" forInsert="false" forUpdate="false"/>
        <bm:field name="bp_class_n" expression="(select v.code_value_name from sys_code_values_v v where v.code=&apos;HLS211_BP_CLASS&apos; and v.code_value=t1.bp_class)" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="record_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="t1.contract_id=${@contract_id}"/>
    </bm:data-filters>
    <bm:query-fields>
        <bm:query-field name="bp_id" queryExpression="t1.bp_id=${@bp_id}"/>
    </bm:query-fields>
</bm:model>
