<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: yuminhui  
    $Date: 2015-10-19 下午2:42:47  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    TO_CHAR(sysdate,'yyyy-mm-dd') now_date,
                    TO_CHAR(TRUNC(sysdate,'month'),'yyyy-mm-dd') month_first_date,
                    TO_CHAR(last_day(sysdate),'yyyy-mm-dd') month_last_date
                FROM
                    dual
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="now_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NOW_DATE"/>
        <bm:field name="month_first_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MONTH_FIRST_DATE"/>
        <bm:field name="month_last_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MONTH_LAST_DATE"/>
    </bm:fields>
</bm:model>
