<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangxing5129  
    $Date: 2014-6-10 下午06:07: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="PRJ_CDD_ITEM_TAB_SUB_GROUP">
    <bm:fields>
        <bm:field name="sub_group_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SUB_GROUP_ID" prompt="PRJ_CDD_ITEM_TAB_SUB_GROUP.SUB_GROUP_ID"/>
        <bm:field name="parent_tab_group_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PARENT_TAB_GROUP_ID"/>
        <bm:field name="tab_group_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TAB_GROUP_ID" prompt="PRJ_CDD_ITEM_TAB_SUB_GROUP.TAB_GROUP_ID"/>
        <bm:field name="tab_group" expression="(select t.tab_group from prj_cdd_item_tab_group t where t.tab_group_id=t1.tab_group_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="tab_group_name" expression="(select t.tab_group_name from prj_cdd_item_tab_group t where t.tab_group_id=t1.tab_group_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="PRJ_CDD_ITEM_TAB_SUB_GROUP.ENABLED_FLAG"/>
    </bm:fields>
    <bm:features>
        <o:sequence-pk/>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="sub_group_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="parent_tab_group_id" queryOperator="="/>
    </bm:query-fields>
</bm:model>
