[xwiki-users] HQL-Query on custom object with user-list
Hi Users, i try to create a hql-query which gives me all documents which contain a custom object and and a defined property. As properties i have in the object a multiselect user-list. Now i want to get all documents in which a specific user is selected in the object. How can i write the hql? I tried something from http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples but nothing seems to work because i always get no results. Could you help me? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/HQL-Query-on-custom-object-with-user-list-... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Sat, Feb 13, 2016 at 4:50 PM, Matthias Wegner <[email protected]> wrote:
Hi Users,
i try to create a hql-query which gives me all documents which contain a custom object and and a defined property. As properties i have in the object a multiselect user-list. Now i want to get all documents in which a specific user is selected in the object. How can i write the hql?
I tried something from http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples but nothing seems to work because i always get no results.
Could you help me?
Have you tried something from http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module ? There's a warning on the top of the page you linked which points to the Query Module documentation. Hope this helps, Marius
Regards, Matthias
-- View this message in context: http://xwiki.475771.n2.nabble.com/HQL-Query-on-custom-object-with-user-list-... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Marius Dumitru Florea -
Matthias Wegner