<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="HLS_DOC_FILE_TMP_PARA_LINK">
    <bm:fields>
        <bm:field name="link_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LINK_ID" prompt="HLS_DOC_FILE_TMP_PARA_LINK.LINK_ID"/>
        <bm:field name="templet_para_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TEMPLET_PARA_ID" prompt="HLS_DOC_FILE_TMP_PARA_LINK.TEMPLET_PARA_ID"/>
        <bm:field name="templet_para_name" expression="(select tp.bookmark_description from HLS_DOC_FILE_TEMPLET_PARA tp where tp.templet_para_id = t1.templet_para_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="templet_para_code" expression="(select tp.bookmark from HLS_DOC_FILE_TEMPLET_PARA tp where tp.templet_para_id = t1.templet_para_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="bookmark_type_desc" expression="(select scv.code_value_name   from HLS_DOC_FILE_TEMPLET_PARA  tp,       sys_code_values_v scv  where tp.templet_para_id = t1.templet_para_id    and scv.code = &apos;BOOKMARK_TYPE&apos;    and scv.code_value = tp.bookmark_type)" forInsert="false" forUpdate="false"/>
        <bm:field name="templet_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TEMPLET_ID" prompt="HLS_DOC_FILE_TMP_PARA_LINK.TEMPLET_ID"/>
        <bm:field name="templet_name" expression="(select ft.templet_name from HLS_DOC_FILE_TEMPLET ft where ft.templet_id = t1.templet_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HLS_DOC_FILE_TMP_PARA_LINK.ENABLED_FLAG"/>
        <bm:field name="font_family" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FONT_FAMILY" prompt="HLS_DOC_FILE_TMP_PARA_LINK.FONT_FAMILY"/>
        <bm:field name="font_size" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FONT_SIZE" prompt="HLS_DOC_FILE_TMP_PARA_LINK.FONT_SIZE"/>
        <bm:field name="ind_width" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="IND_WIDTH" prompt="HLS_DOC_FILE_TMP_PARA_LINK.IND_WIDTH"/>
        <bm:field name="underline" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="UNDERLINE" prompt="HLS_DOC_FILE_TMP_PARA_LINK.UNDERLINE"/>
    </bm:fields>
    <bm:features>
        <o:sequence-pk/>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="link_id"/>
    </bm:primary-key>
    <!-- <bm:query-fields>
        <bm:query-field field="templet_id" queryOperator="="/>
    </bm:query-fields> -->
    <bm:data-filters>
        <bm:data-filter name="templet_id" enforceOperations="query" expression="t1.templet_id = ${@templet_id}"/>
    </bm:data-filters>
</bm:model>
