<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: ZLF  
    $Date: 2015-1-2 上午9:54:58  
    $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="HLS_DOCUMENT_NODE">
    <bm:fields>
        <bm:field name="node_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="NODE_ID" prompt="HLS_DOCUMENT_NODE.NODE_ID"/>
        <bm:field name="node_seq" databaseType="NUMBER" datatype="java.lang.Long" forDisplay="true" forQuery="true" physicalName="NODE_SEQ" prompt="节点序号"/>
        <bm:field name="node_desc" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="NODE_DESC" prompt="节点描述"/>
        <bm:field name="node_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NODE_TYPE" prompt="HLS_DOCUMENT_NODE.NODE_TYPE"/>
        <bm:field name="node_type_desc" expression="(select v.code_value_name from sys_code_values_v v where v.code =&apos;HLS_DOCUMENT_NODE_TYPE&apos; and v.code_value =t1.node_type )" forDisplay="true" forInsert="false" forQuery="true" forUpdate="false" prompt="节点类型"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HLS_DOCUMENT_NODE.ENABLED_FLAG"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:query-fields>
        <bm:query-field name="node_id_not_in" queryExpression="t1.node_id != ${@node_id_not_in}"/>
        <bm:query-field field="node_seq" queryOperator="="/>
        <bm:query-field field="node_desc" queryOperator="like"/>
        <bm:query-field field="node_type" queryOperator="="/>
        <bm:query-field field="node_type" queryOperator="like"/>
    </bm:query-fields>
    <bm:primary-key>
        <bm:pk-field name="node_id"/>
    </bm:primary-key>
</bm:model>
