fnd_uom_codes.lwm 1.3 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="fc" baseTable="fnd_uom_codes" defaultorderby="uom_code">
    <bm:fields>
        <bm:field name="uom_code" databaseType="VARCHAR" datatype="java.lang.String" prompt="FND_UOM_CODES.UOM_CODE"/>
        <bm:field name="uom_type_code" databaseType="VARCHAR" datatype="java.lang.String" prompt="FND_UOM_CODES.UOM_TYPE_CODE"/>
        <bm:field name="description_id" databaseType="BIGINT" datatype="java.lang.Long" multiLanguage="true" multiLanguageDescField="uom_name"/>
        <bm:field name="uom_name" databaseType="VARCHAR" datatype="java.lang.String" forInsert="false" forUpdate="false" prompt="FND_UOM_CODES.DESCRIPTION"/>
    </bm:fields>
    <bm:primary-key>
        <bm:pk-field name="uom_code"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="uom_code" queryOperator="like"/>
        <bm:query-field field="uom_name" queryExpression="exists (select 1 from fnd_descriptions fd where fc.description_id=fd.description_id and fd.description_text like ${@uom_name} and fd.language = ${/session/@lang})"/>
    </bm:query-fields>
    <bm:features>
        <f:standard-who/>
        <f:multi-language-storage/>
    </bm:features>
    <bm:ref-fields/>
</bm:model>