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

Reply via email to