SQL语句中 加入FreeMarker指令 怎么配置?

<entry key="user.findUsers.query"><value><![CDATA[
                from User u where 1=1
                <#if username?has_content>
                    and u.username like %:username%
                </#if>
                <#if orderBy?has_content>
                    order by u.${orderBy}
                <#else>
                    order by u.username
                </#if>
            ]]></value></entry>

            这个怎么配置的 在项目中  大侠给我讲讲 

http://blog.csdn.net/crazycoder2010/article/details/7414152