<?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 ee.employee_type_id
                from exp_employees ee
                where ee.employee_id =
                (select su.employee_id
                from sys_user su
                where su.user_id = ${/session/@user_id})
                ]]>
            </bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
