<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: xiaobo  
    $Date: 2012-11-26 下午3:19:54  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="PSR_REPORT_CONDITIONS" defaultOrderBy="line_number">
    <bm:fields>
        <bm:field name="report_condition_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REPORT_CONDITION_ID" prompt="PSR_REPORT_CONDITIONS.REPORT_CONDITION_ID"/>
        <bm:field name="line_number" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LINE_NUMBER" prompt="PSR_REPORT_CONDITIONS.LINE_NUMBER"/>
        <bm:field name="report_header_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REPORT_HEADER_ID" prompt="PSR_REPORT_CONDITIONS.REPORT_HEADER_ID"/>
        <bm:field name="logic" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LOGIC" prompt="PSR_REPORT_CONDITIONS.LOGIC"/>
        <bm:field name="field_1" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIELD_1" prompt="PSR_REPORT_CONDITIONS.FIELD_1"/>
        <bm:field name="table_name_1" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="field_type_1" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="field_1_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIELD_1_CATEGORY" prompt="PSR_REPORT_CONDITIONS.FIELD_1_CATEGORY"/>
        <bm:field name="condition_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONDITION_TYPE" prompt="PSR_REPORT_CONDITIONS.CONDITION_TYPE"/>
        <bm:field name="field_2" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIELD_2" prompt="PSR_REPORT_CONDITIONS.FIELD_2"/>
        <bm:field name="table_name_2" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="field_type_2" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="field_2_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FIELD_2_CATEGORY" prompt="PSR_REPORT_CONDITIONS.FIELD_2_CATEGORY"/>
        <bm:field name="left_parenthesis" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEFT_PARENTHESIS" prompt="PSR_REPORT_CONDITIONS.LEFT_PARENTHESIS"/>
        <bm:field name="right_parenthesis" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="RIGHT_PARENTHESIS" prompt="PSR_REPORT_CONDITIONS.RIGHT_PARENTHESIS"/>
        <bm:field name="editor_flag" databaseType="VARCHAR2" datatype="java.lang.String"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="report_condition_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="report_header_id" queryExpression="t1.report_header_id = ${/parameter/@report_header_id}"/>
    </bm:query-fields>
</bm:model>
