<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:ns1="leaf.database.features" alias="s" extend="gld.gld_mapping_conditions_sql" extendMode="reference">
    <bm:fields>
        <bm:field databaseType="VARCHAR2" datatype="java.lang.String" name="mapping_condition_code" prompt="GLD_MAPPING_CONDITIONS_SQL.MAPPING_CONDITION_CODE"/>
        <bm:field databaseType="NUMBER" datatype="java.lang.Long" multiLanguage="true" multiLanguageDescField="mapping_condition_sql_desc" name="description_id"/>
        <bm:field forInsert="false" forUpdate="false" name="mapping_condition_sql_desc" prompt="GLD_MAPPING_CONDITIONS_SQL.MAPPING_CONDTIONS_SQL_DESCRIPTION"/>
    </bm:fields>
    <bm:primary-key>
        <bm:pk-field name="mapping_condition_code"/>
    </bm:primary-key>
    <bm:features>
        <ns1:standard-who/>
        <ns1:multi-language-storage/>
    </bm:features>
    <bm:data-filters>
        <bm:data-filter expression="exists (select 1 from gld_usage_codes_catalog c where c.mapping_condition_code=s.mapping_condition_code and c.usage_code = ${/parameter/@usage_code})" name="exists"/>
    </bm:data-filters>
    <bm:ref-fields/>
</bm:model>
