Hi, devs.

There is a possible problem in xwql:
Right now if you write "obj.prop", and obj is object, then engine look 
if prop is xwiki property (if class has such property). If yes then it 
rewrite obj.prop to this xwiki property. If not, this is internal 
BaseObject property.

In this case there is impossible to access to internal BaseObject fields 
(actually there is only one="number" field which is useful for query) if 
there is a xwiki property with the same name.

BaseObject.number is useful if you want to do "order by obj.number" for 
example.

In QueryPlugin, I added the prefix "xp:" to all xwiki properties to 
resolve this problem.
But I don't think we should do similar now for just one "number" field.

Solutions:
1) do nothing.
2) prevent to create xwiki property with name "number".
3) use "obj.prop._number" for internal BaseObject fields and prevent to 
use such xwiki property ("_number").
4) your ideas?

-- 
   Artem Melentyev
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to