<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    to_date(TO_CHAR(sysdate, 'YYYY-MM')
                    || '01', 'YYYY-MM-DD') month_begin,
                    TRUNC((add_months(sysdate, 1) - to_number(TO_CHAR(sysdate, 'DD')))) month_end
                FROM
                    dual
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="month_begin" databaseType="DATE" datatype="java.util.Date" physicalName="MONTH_BEGIN"/>
        <bm:field name="month_end" databaseType="DATE" datatype="java.util.Date" physicalName="MONTH_END"/>
    </bm:fields>
</bm:model>
