<?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="SDIC_FIN_PLAN_FORTH_CLASS" defaultOrderBy="third_class_id,order_seq">
    <bm:fields>
        <bm:field name="forth_class_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FORTH_CLASS_ID" prompt="SDIC_FIN_PLAN_FORTH_CLASS.FORTH_CLASS_ID"/>
        <bm:field name="third_class_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="THIRD_CLASS_ID" prompt="SDIC_FIN_PLAN_FORTH_CLASS.THIRD_CLASS_ID"/>
        <bm:field name="forth_class_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FORTH_CLASS_CODE" prompt="SDIC_FIN_PLAN_FORTH_CLASS.FORTH_CLASS_CODE"/>
        <bm:field name="forth_class_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FORTH_CLASS_NAME" prompt="SDIC_FIN_PLAN_FORTH_CLASS.FORTH_CLASS_NAME"/>
        <bm:field name="order_seq" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ORDER_SEQ" prompt="SDIC_FIN_PLAN_FORTH_CLASS.ORDER_SEQ"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="SDIC_FIN_PLAN_FORTH_CLASS.ENABLED_FLAG"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="forth_class_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="(t1.third_class_id=${@third_class_id})"/>
    </bm:data-filters>
    <bm:operations>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[
            begin
            sdic_fin_plan_class_pkg.sdic_fin_plan_forth_class_ins(p_third_class_id =>${@third_class_id},
                                          p_forth_class_code =>${@forth_class_code},
                                          p_forth_class_name =>${@forth_class_name},
                                          p_order_seq        =>${@order_seq},
                                          p_enabled_flag     =>${@enabled_flag},
                                          p_user_id          =>${/session/@user_id});
            end;
    		]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
