<?xml version="1.0" encoding="UTF-8"?>
<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="ZJ_WFL_BUSINESS_RULE_PARAS">
    <bm:fields>
        <bm:field name="parameter_id" databaseType="NUMBER" datatype="java.lang.Double" physicalName="PARAMETER_ID" prompt="WFL_BUSINESS_RULE_PARAMETERS.PARAMETER_ID"/>
        <bm:field name="parameter_code" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="PARAMETER_CODE" prompt="WFL_BUSINESS_RULE_PARAMETERS.PARAMETER_CODE"/>
        <bm:field name="description_id" databaseType="NUMBER" datatype="java.lang.Double" multiLanguage="true" multiLanguageDescField="description" physicalName="DESCRIPTION_ID" prompt="WFL_BUSINESS_RULE_PARAMETERS.DESCRIPTION_ID"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="WFL_BUSINESS_RULE_PARAMETERS.ENABLED_FLAG"/>
        <bm:field name="workflow_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="WORKFLOW_CATEGORY" prompt="WFL_BUSINESS_RULE_PARAMETERS.WORKFLOW_CATEGORY"/>
        <bm:field name="sql_contents" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SQL_CONTENTS" prompt="WFL_BUSINESS_RULE_PARAMETERS.SQL_CONTENTS"/>
        <bm:field name="description" databaseType="VARCHAR" datatype="java.lang.String" forDisplay="true" forInsert="false" forQuery="true" forUpdate="false" prompt="WFL_BUSINESS_RULE_PARAMETERS.DESCRIPTION_ID"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <f:multi-language-storage/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="parameter_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="parameter_id" queryOperator="="/>
        <bm:query-field field="parameter_code" queryOperator="like"/>
        <bm:query-field name="description" queryExpression="exists (select 1 from fnd_descriptions fd where t1.description_id=fd.description_id and fd.description_text like ${@description} and fd.language = ${/session/@lang})"/>
    </bm:query-fields>
</bm:model>
