<?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="HN_CON_CONTENT_CHANGE_REQ">
    <bm:fields>
        <bm:field name="content_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTENT_ID" prompt="HN_CON_CONTENT_CHANGE_REQ.CONTENT_ID"/>
        <bm:field name="content_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTENT_NUMBER" prompt="HN_CON_CONTENT_CHANGE_REQ.CONTENT_NUMBER"/>
        <bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID" prompt="HN_CON_CONTENT_CHANGE_REQ.PROJECT_ID"/>
        <bm:field name="prj_bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PRJ_BP_ID" prompt="HN_CON_CONTENT_CHANGE_REQ.PRJ_BP_ID"/>
        <bm:field name="record_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RECORD_ID" prompt="HN_CON_CONTENT_CHANGE_REQ.RECORD_ID"/>
        <bm:field name="bp_name" expression="(select bp_name from prj_project_bp ppb where ppb.prj_bp_id=t1.prj_bp_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="bp_category_desc" expression="(select hbc.description from prj_project_bp ppb,hls_bp_category hbc where hbc.bp_category=ppb.bp_category and ppb.prj_bp_id=t1.prj_bp_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="file_name" expression="(hls_sys_upload_pkg.get_atm_file_href(p_table_pk_value =&gt; t1.content_id,p_source_type =&gt; &apos;HN_CON_CONTENT_CHANGE_REQ&apos;,p_user_id =&gt; 1))" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="content_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="t1.record_id=${@record_id}"/>
    </bm:data-filters>
</bm:model>
