<?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_THIRD_CLASS" defaultOrderBy="second_class_id,order_seq">
    <bm:fields>
        <bm:field name="third_class_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="THIRD_CLASS_ID" prompt="SDIC_FIN_PLAN_THIRD_CLASS.THIRD_CLASS_ID"/>
        <bm:field name="second_class_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SECOND_CLASS_ID" prompt="SDIC_FIN_PLAN_THIRD_CLASS.SECOND_CLASS_ID"/>
        <bm:field name="third_class_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="THIRD_CLASS_CODE" prompt="SDIC_FIN_PLAN_THIRD_CLASS.THIRD_CLASS_CODE"/>
        <bm:field name="third_class_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="THIRD_CLASS_NAME" prompt="SDIC_FIN_PLAN_THIRD_CLASS.THIRD_CLASS_NAME"/>
        <bm:field name="order_seq" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ORDER_SEQ" prompt="SDIC_FIN_PLAN_THIRD_CLASS.ORDER_SEQ"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="SDIC_FIN_PLAN_THIRD_CLASS.ENABLED_FLAG"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="third_class_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="(t1.second_class_id=${@second_class_id})"/>
    </bm:data-filters>
    <bm:operations>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[
            begin
            sdic_fin_plan_class_pkg.sdic_fin_plan_third_class_ins(p_second_class_id =>${@second_class_id},
                                          p_third_class_code =>${@third_class_code},
                                          p_third_class_name =>${@third_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>
