<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: DJ  
    $Date: 2013-2-27 上午11:17:32  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="GLD_JE_TEST_HEADERS" defaultOrderBy="je_id desc">
    <bm:fields>
        <bm:field name="je_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="JE_ID" prompt="GLD_JE_TEST_HEADERS.JE_ID"/>
        <bm:field name="je_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="JE_NUMBER" prompt="GLD_JE_TEST_HEADERS.JE_NUMBER"/>
        <bm:field name="je_date" databaseType="DATE" datatype="java.util.Date" physicalName="JE_DATE" prompt="GLD_JE_TEST_HEADERS.JE_DATE"/>
        <bm:field name="je_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="JE_DESC" prompt="GLD_JE_TEST_HEADERS.JE_DESC"/>
    </bm:fields>
    <bm:operations>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
    			declare
    			v_number number;
    			begin
    				v_number:=gld_je_creation_pkg.create_je_test(${@je_id},${/session/@company_id},${/session/@user_id});
    			end;
    		]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="je_id"/>
    </bm:primary-key>
</bm:model>
