<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hand  
    $Date: 2016-12-29 下午4:51:53  
    $Revision: 1.0  
    $Purpose: 
--><bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="HLS_BP_TYPE_ASSIGN">
    <bm:fields>
        <bm:field name="assign_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ASSIGN_ID" prompt="HLS_BP_TYPE_ASSIGN.ASSIGN_ID"/>
        <bm:field name="user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="USER_ID" prompt="HLS_BP_TYPE_ASSIGN.USER_ID"/>
        <bm:field name="bp_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_TYPE" prompt="HLS_BP_TYPE_ASSIGN.BP_TYPE"/>
        <bm:field name="enable_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLE_FLAG" prompt="HLS_BP_TYPE_ASSIGN.ENABLE_FLAG"/>
        <bm:field name="user_name" expression="(select su.user_name from sys_user su where su.user_id=t1.user_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="user_name_desc" expression="(select su.description from sys_user su where su.user_id=t1.user_id)" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
         <o:sequence-pk sequenceName="hls_bp_type_assign_s" autoReturn="true"   xmlns:o="leaf.database.local.oracle"  />
        <f:standard-who xmlns:f="leaf.database.features"/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="assign_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="bp_type" queryOperator="="/>
        <!--  <bm:query-field  name="bp_type"   queryExpression="t1.bp_type=${@bp_type}"  /> -->
    </bm:query-fields>
</bm:model>
