[xwiki-devs] Named queries

Jan Kodera jan.kodera at gmail.com
Tue Oct 30 16:54:57 CET 2007


Hi,
 thanks. That is exactly what i need.

On 10/30/07, Thomas Mortagne <thomas.mortagne at 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 at gmail.com>:
> > 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 at xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/devs
> >
> >
>
>
> --
> Thomas Mortagne
> _______________________________________________
> devs mailing list
> devs at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20071030/b20d46fe/attachment.html 


More information about the devs mailing list