<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: xiaobo  
    $Date: 2012-11-26 上午10:50:40  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="PSR_BASE_TABLES">
    <bm:fields>
        <bm:field name="table_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TABLE_NAME" prompt="PSR_BASE_TABLES.TABLE_NAME"/>
        <bm:field name="table_description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TABLE_DESCRIPTION" prompt="PSR_BASE_TABLES.TABLE_DESCRIPTION"/>
        <bm:field name="table_alias" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="table_alias" prompt="PSR_BASE_TABLES.table_alias"/>
        <bm:field name="default_table_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="default_table_flag" prompt="PSR_BASE_TABLES.default_table_flag"/>
        <bm:field name="user_id" databaseType="NUMBER" datatype="java.lang.Long"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="table_name"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter name="user_id" enforceOperations="query" expression="t1.user_id = ${/session/@user_id}"/>
    </bm:data-filters>
    <bm:query-fields>
        <bm:query-field name="default_table_flag" queryExpression="t1.default_table_flag = ${/parameter/@default_table_flag}"/>
    </bm:query-fields>
</bm:model>
