<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                 select nvl((select ep.employee_type_code
                           from exp_employees e, exp_employee_types_vl ep
                          where e.employee_id = su.employee_id
                            and e.employee_type_id = ep.employee_type_id),'NULL') employee_type_code
                   from sys_user su
                  where su.user_id = ${/session/@user_id}
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
