<?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="FND_INTERFACE_TEMPLATES">
    <bm:fields>
        <bm:field name="header_id" databaseType="NUMBER" datatype="java.lang.Double" physicalName="HEADER_ID" prompt="FND_INTERFACE_TEMPLATES.HEADER_ID"/>
        <bm:field name="template_code" databaseType="VARCHAR2" datatype="java.lang.String" forUpdate="false" physicalName="TEMPLATE_CODE" prompt="FND_INTERFACE_TEMPLATES.TEMPLATE_CODE"/>
        <bm:field name="job_id" databaseType="NUMBER" datatype="java.lang.Double" physicalName="JOB_ID" prompt="FND_INTERFACE_TEMPLATES.JOB_ID"/>
        <bm:field name="status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS" prompt="FND_INTERFACE_TEMPLATES.STATUS"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="FND_INTERFACE_TEMPLATES.ENABLED_FLAG"/>
        <bm:field name="description_id" databaseType="NUMBER" datatype="java.lang.Double" multiLanguage="true" multiLanguageDescField="description" physicalName="DESCRIPTION_ID" prompt="FND_INTERFACE_TEMPLATES.DESCRIPTION_ID"/>
        <bm:field name="execute_pkg" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXECUTE_PKG" prompt="FND_INTERFACE_TEMPLATES.EXECUTE_PKG"/>
        <bm:field name="source_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SOURCE_TYPE" prompt="FND_INTERFACE_TEMPLATES.SOURCE_TYPE"/>
        <bm:field name="description" databaseType="VARCHAR" datatype="java.lang.String" forInsert="false" prompt="FND_INTERFACE_TEMPLATES.DESCRIPTION"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <f:multi-language-storage/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <!--<bm:pk-field name="template_code"/>-->
        <bm:pk-field name="header_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="template_code" queryOperator="like"/>
        <bm:query-field field="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>
