<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:e="leaf.service.exception" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="fc" baseTable="fnd_uom_precision">
    <bm:fields>
        <bm:field name="uom_code" databaseType="VARCHAR" datatype="java.lang.String" prompt="FND_UOM_CODES.UOM_CODE"/>
        <bm:field name="precision" databaseType="VARCHAR" datatype="java.lang.String" prompt="FND_UOM_PRECISION.PRECISION"/>
        <bm:field name="precision_old" expression="(select precision from fnd_uom_precision fup where fup.uom_code=fc.uom_code)" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:primary-key>
        <bm:pk-field name="uom_code"/>
    </bm:primary-key>
    <bm:relations>
        <bm:relation name="c" joinType="INNER" refModel="fnd.FND2310.fnd_uom_codes_vl">
            <bm:reference foreignField="uom_code" localField="uom_code"/>
        </bm:relation>
    </bm:relations>
    <bm:query-fields>
        <bm:query-field field="uom_code" queryOperator="like"/>
        <bm:query-field name="uom_name" queryExpression=" description_text like ${@uom_name}"/>
    </bm:query-fields>
    <bm:features>
        <f:standard-who/>
        <f:multi-language-storage/>
    </bm:features>
    <bm:ref-fields>
        <bm:ref-field name="uom_name" relationName="c" sourceField="description_text"/>
    </bm:ref-fields>
    <e:exception-descriptor-config>
        <e:exception-descriptor exception="java.sql.SQLException" handleClass="leaf.database.SQLExceptionDescriptor">
            <e:error-message code="1" message="FND_UOM_CODES.UOM_CODE_DISTINCT"/>
        </e:exception-descriptor>
    </e:exception-descriptor-config>
</bm:model>