Hi,
thanks. That is exactly what i need.
On 10/30/07, Thomas Mortagne <thomas.mortagne(a)xwiki.com> wrote:
Hi,
If you speak about Velocity $xwiki.searchDocument you can use
searchDocuments(String parametrizedSqlClause, int nb, int start, List
parameterValues) that takes hibernate named query as
"parametrizedSqlClause" and list of values as "parameterValues".
If you are on java (plugin, core) side you can access
XWikiStoreInterface.searchDocumentNames (since XWiki 1.1.1/1.2M1),
XWikiStoreInterface.searchDocument (since XWiki 1.1.2/1.2M2) and
XWikiStoreInterface.search (since XWiki 1.1.2/1.2M2) that support
named queries with additional List parameter.
XWiki 1.1.2/1.2M2 is planned to be released this week.
2007/10/30, Jan Kodera <jan.kodera(a)gmail.com>om>:
Hi,
is possible in xwiki to use hibernate named queries? If so, how?
Can I call the method searchDocuments and query name pass as parameter?
Thanks.
Honza
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs