On Jun 11, 2010, at 9:03 AM, Vincent Massol wrote:
Hi devs,
I'm wondering why we haven't moved to using XQL instead of HQL.
Any reason?
If not, I'd like to suggest we start using it everywhere we currently use HQL since
XWQL since is much nicer. Also since we don't use it our users don't use it.
Additionally I'd like to propose that we move to a ScriptService to access the query
manager.
From Velocity you'd write the following to get a Query:
$services.query.xwql("....")
Note that the ScriptService implementation would replace the SecureQueryManager
implementation.
We would also deprecate XWiki.getQueryManager.
WDYT?
Done for the script service + documented at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/QueryGuide
Feedback welcome before the XE 2.4 final release if you want to change something.
Thanks
-Vincent