[xwiki-devs] [gsoc] Re: Problems creating a query using the QueryManager
Artem Melentyev
amelentev at gmail.com
Mon Jul 28 16:47:38 CEST 2008
Hi, Vincent.
Vincent Massol wrote:
> On Jul 28, 2008, at 1:02 PM, Vincent Massol wrote:
>
>> On Jul 28, 2008, at 12:53 PM, Thomas Mortagne wrote:
>>
>>> On Mon, Jul 28, 2008 at 12:17 PM, Markus Lanthaler
>>> <mark_lanthaler at gmx.net> wrote:
>>>> Hi Ludovic,
>>>>
>>>> I just created a class OpenIDHelper which has a static method
>>>> findOpenIDUser(). That method is called in the already existent
>>>> class
>>>> MyFormAuthenticator which I extended a bit. Shouldn't the
>>>> component manager
>>>> be set up already in that "context"? Do you need any other details?
>>> Yes i did not look close enough the stack trace. So I don't
>>> understand
>>> why this is not already initialized...
>> I think I know why: because the code doesn't work :)
>>
>> The AbstractQueryManager should implement Composable.
Yes. I forgot to add QueryManager as <requirement> while moving code to
clean svn workcopy. But Composable it fine also.
It is affect only to #createQuery, but not to #getNamedQuery.
>> I'm looking into it.
>
> Markus,
>
> Could you svn up, rebuild and try again. I think I've fixed it but
> since this is not code I know well (it's just been added by Artem) I
> haven't tested my change. I'm not even sure the Query Manager is
> working at all since the issue isn't closed:
> http://jira.xwiki.org/jira/browse/XWIKI-2444
>
> Artem, could you please let us know the status?
[Hibernate]QueryManager is already working. There are some named queries
used in XWiki class.
XWIKI-2444 is still open for testing in case of some issues.
--
Artem Melentyev
More information about the devs
mailing list