fnd_province.lwm 2.12 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 22 23 24 25 26 27 28 29 30
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:e="leaf.service.exception" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="fnd_province" defaultOrderBy="country_code_desc,province_code">
    <bm:fields>
        <bm:field name="country_id" databaseType="BIGINT" datatype="java.lang.Long" physicalName="COUNTRY_ID"/>
        <bm:field name="country_code_desc" datatype="java.lang.String" expression="(select description from fnd_country where country_id = t1.country_id)" forInsert="false" forUpdate="false" prompt="HLS.COUNTRY_NAME"/>
        <bm:field name="province_id" databaseType="BIGINT" datatype="java.lang.Long" physicalName="PROVINCE_ID"/>
        <bm:field name="province_code" databaseType="VARCHAR" datatype="java.lang.String" physicalName="PROVINCE_CODE" prompt="HLS.PROVINCE_CODE"/>
        <bm:field name="description" databaseType="VARCHAR" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="HLS.DESCRIPTION"/>
        <bm:field name="print_name" databaseType="VARCHAR" datatype="java.lang.String" physicalName="PRINT_NAME" prompt="HLS.PRINT_NAME"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HLS.ENABLED_FLAG"/>
        <bm:field name="province_abbr" databaseType="VARCHAR" datatype="java.lang.String" physicalName="PROVINCE_ABBR" prompt="HLS.PROVINCE_ABBR"/>
    </bm:fields>
    <bm:primary-key>
        <bm:pk-field name="province_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="province_code" queryOperator="like"/>
        <bm:query-field field="description" queryOperator="like"/>
    </bm:query-fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:ref-fields/>
    <e:exception-descriptor-config>
        <e:exception-descriptor exception="java.sql.SQLException" handleClass="leaf.database.SQLExceptionDescriptor">
            <e:error-message code="1" message="HLS.FND012_UNIQUE_ERROR"/>
        </e:exception-descriptor>
    </e:exception-descriptor-config>
</bm:model>