<?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_SECOND_CLASS" defaultOrderBy="first_class_id,order_seq">
    <bm:fields>
        <bm:field name="second_class_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SECOND_CLASS_ID" prompt="SDIC_FIN_PLAN_SECOND_CLASS.SECOND_CLASS_ID"/>
        <bm:field name="first_class_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FIRST_CLASS_ID" prompt="SDIC_FIN_PLAN_SECOND_CLASS.FIRST_CLASS_ID"/>
        <bm:field name="second_class_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SECOND_CLASS_CODE" prompt="SDIC_FIN_PLAN_SECOND_CLASS.SECOND_CLASS_CODE"/>
        <bm:field name="second_class_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SECOND_CLASS_NAME" prompt="SDIC_FIN_PLAN_SECOND_CLASS.SECOND_CLASS_NAME"/>
        <bm:field name="order_seq" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ORDER_SEQ" prompt="SDIC_FIN_PLAN_SECOND_CLASS.ORDER_SEQ"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="SDIC_FIN_PLAN_SECOND_CLASS.ENABLED_FLAG"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="second_class_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="(t1.first_class_id=${@first_class_id})"/>
    </bm:data-filters>
    <bm:operations>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[
            begin
            sdic_fin_plan_class_pkg.sdic_fin_plan_second_class_ins(p_first_class_id =>${@first_class_id},
                                           p_second_class_code =>${@second_class_code},
                                           p_second_class_name =>${@second_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>
