Hi,
See the javadoc for Document here
http://tinyurl.com/9hxpot . Pay
attention especially to getObject* methods. For each document retrieved
with your HQL query you can call getObjects("Space.MyClass").
Hope this helps,
Marius
Jean Couteau wrote:
Dear all,
I am a bit lost with hql requests.
What I would like to do is find all the objects of Space.MyClass (even
if there are more than one object on a page).
I tried to play with
#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='Space.MyClass'")
and then
#foreach ($item in $xwiki.searchDocuments($sql))
to display the results.
But the only thing i can get is the documents.
Is there a searchObjects method or something like that ?
Any hint or solution ?
Jean