<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HLS_BP_MASTER_GUARANTOR_ORG_LV">
    <bm:fields>
        <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.CONTRACT_ID"/>
        <bm:field name="bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.BP_ID"/>
        <bm:field name="bp_seq" expression="((select nvl(count(*),0) from HLS_BP_MASTER_GUARANTOR_NP_LV t where t.contract_id=${@contract_id})+rownum)"/>
        <bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CODE" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.BP_CODE"/>
        <bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.BP_NAME"/>
        <bm:field name="bp_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.BP_CLASS"/>
        <bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.BP_CATEGORY"/>
        <bm:field name="registered_place" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REGISTERED_PLACE" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.REGISTERED_PLACE"/>
        <bm:field name="email" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EMAIL" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.EMAIL"/>
        <bm:field name="doc_sent_address" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOC_SENT_ADDRESS" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.DOC_SENT_ADDRESS"/>
        <bm:field name="legal_person" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEGAL_PERSON" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.LEGAL_PERSON"/>
        <bm:field name="contact_person" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTACT_PERSON" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.CONTACT_PERSON"/>
        <bm:field name="phone" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PHONE" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.PHONE"/>
        <bm:field name="fax" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FAX" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.FAX"/>
        <bm:field name="send_phone" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEND_PHONE" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.SEND_PHONE"/>
        <bm:field name="send_fax" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEND_FAX" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.SEND_FAX"/>
        <bm:field name="send_email" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEND_EMAIL" prompt="HLS_BP_MASTER_GUARANTOR_ORG_LV.SEND_EMAIL"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
</bm:model>
