Re: [xwiki-users] "wrapped exception: XXX is not mapped"

2011-01-06 Thread Sergiu Dumitriu
On 01/06/2011 01:18 PM, Caleb James DeLisle wrote: > > > On 01/06/2011 07:00 AM, Caleb James DeLisle wrote: >> The problem is that you are using SQL to query against the database and >> Hibernate is expecting HQL. >> I assume you added a table called lovtestdata manually. unfortunately >> hiberna

Re: [xwiki-users] "wrapped exception: XXX is not mapped"

2011-01-06 Thread Caleb James DeLisle
On 01/06/2011 07:00 AM, Caleb James DeLisle wrote: > The problem is that you are using SQL to query against the database and > Hibernate is expecting HQL. > I assume you added a table called lovtestdata manually. unfortunately > hibernate doesn't know that it > exists and will not allow you to

Re: [xwiki-users] "wrapped exception: XXX is not mapped"

2011-01-06 Thread Richardson Luke
Excellent, looks like this may do the trick. Thanks very much for your help :) -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org]on Behalf Of Caleb James DeLisle Sent: 06 January 2011 12:00 To: XWiki Users Subject: Re: [xwiki-users] "wrapped exception

Re: [xwiki-users] "wrapped exception: XXX is not mapped"

2011-01-06 Thread Caleb James DeLisle
The problem is that you are using SQL to query against the database and Hibernate is expecting HQL. I assume you added a table called lovtestdata manually. unfortunately hibernate doesn't know that it exists and will not allow you to query against it. The easy solution is to use: {{groovy}} xc =

[xwiki-users] "wrapped exception: XXX is not mapped"

2011-01-06 Thread Richardson Luke
Hi All, I am having an issue with an error when running a velocity macro in xwiki. Within the Oracle database I have a table containing a list of page names. I am trying to run a script where the system takes this list, cycles through all pages within a space and deletes any pages who's name a