You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Bruce Beaumont <br...@ucs-solutions.co.za> on 2007/07/31 13:43:03 UTC
Small typo in the manual
Hi
I am posting this here as I am not shure where to post this too:
In the manual on Example 10.1Delete By Query (on-line html version)
Query q = em.createQuery("DELETE s FROM Subscription s WHERE
s.subscriptionDate < :today");
Should read
Query q = em.createQuery("DELETE FROM Subscription s WHERE s.subscriptionDate
< :today");
as the following is thrown
An error occurred while parsing the query filter 'delete s from simple s where
s.date < :deldate'. Error message: <1.0.0-SNAPSHOT-SNAPSHOT nonfatal user
error> org.apache.openjpa.kernel.jpql.ParseException: Encountered "s" at
character 8, but expected: ["FROM"]
Bruce
Re: Small typo in the manual
Posted by "David Ezzio (asmtp)" <de...@bea.com>.
Hi Bruce,
Currently, the "latest documentation" is the documentation for the
latest release, in this case 0.97 from April. The most up to date
documentation is available with the nightly build snapshot.
David
David Ezzio wrote:
> Hi Bruce,
>
> We corrected this typo in the source over a month ago. I'll see if I
> can run down why it hasn't shown up on-line.
>
> Thanks,
>
> David
>
> Bruce Beaumont wrote:
>> Hi
>>
>> I am posting this here as I am not shure where to post this too:
>>
>> In the manual on Example 10.1Delete By Query (on-line html version)
>> Query q = em.createQuery("DELETE s FROM Subscription s WHERE
>> s.subscriptionDate < :today");
>>
>> Should read
>>
>> Query q = em.createQuery("DELETE FROM Subscription s WHERE s.subscriptionDate
>> < :today");
>>
>> as the following is thrown
>> An error occurred while parsing the query filter 'delete s from simple s where
>> s.date < :deldate'. Error message: <1.0.0-SNAPSHOT-SNAPSHOT nonfatal user
>> error> org.apache.openjpa.kernel.jpql.ParseException: Encountered "s" at
>> character 8, but expected: ["FROM"]
>>
>>
>>
>>
>> Bruce
>>
>
>
> Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
>
Re: Small typo in the manual
Posted by David Ezzio <de...@bea.com>.
Hi Bruce,
We corrected this typo in the source over a month ago. I'll see if I
can run down why it hasn't shown up on-line.
Thanks,
David
Bruce Beaumont wrote:
> Hi
>
> I am posting this here as I am not shure where to post this too:
>
> In the manual on Example 10.1Delete By Query (on-line html version)
> Query q = em.createQuery("DELETE s FROM Subscription s WHERE
> s.subscriptionDate < :today");
>
> Should read
>
> Query q = em.createQuery("DELETE FROM Subscription s WHERE s.subscriptionDate
> < :today");
>
> as the following is thrown
> An error occurred while parsing the query filter 'delete s from simple s where
> s.date < :deldate'. Error message: <1.0.0-SNAPSHOT-SNAPSHOT nonfatal user
> error> org.apache.openjpa.kernel.jpql.ParseException: Encountered "s" at
> character 8, but expected: ["FROM"]
>
>
>
>
> Bruce
>
Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.