Thxs => useful links bookmarked :-)

Anyway, how do you found default alias of table name then?
By example the alias "act" in my hql string here "act.eventId" (I found it by 
chance in error log)
#set($results= $xwiki.activitystream.searchEvents("act.eventId in ($ListIn)", 
false, 0, 0))

Here i suppose? 
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-activitystream/xwiki-platform-activitystream-api/src/main/java/com/xpn/xwiki/plugin/activitystream/impl/ActivityStreamImpl.java#L429-L430



--------------------------------------------
En date de : Mer 20.1.16, Eduard Moraru <[email protected]> a écrit :

 Objet: Re: [xwiki-users] Fw : Fw : Re: Fw : Re: Fw : Re: How can I get event 
object through a form
 À: "Pascal BASTIEN" <[email protected]>, "XWiki Users" <[email protected]>
 Date: Mercredi 20 janvier 2016, 16h36
 
 Hi,
 
 This is the activitystream hibernate
 mapping where you can see the exact property names:
 
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-activitystream/xwiki-platform-activitystream-api/src/main/resources/activitystream.hbm.xml
 
 ...and this is the
 regular XWiki model mapping (corresponding to the other
 tables observed in 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema
 )
 
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/xwiki.hbm.xml
 
 Remember that, when
 writing HQL, you need to look at the hibernate mapping, not
 just the SQL database schema (which is useful, but can be
 misleading).
 
 Thanks,
 Eduard
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to