openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r544970 - /openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml
Date Wed, 06 Jun 2007 21:55:31 GMT
Author: pcl
Date: Wed Jun  6 14:55:31 2007
New Revision: 544970

URL: http://svn.apache.org/viewvc?view=rev&rev=544970
Log:
Corrected delete-by-query example. Thanks, Ignacio, for pointing this out.

Modified:
    openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml

Modified: openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml?view=diff&rev=544970&r1=544969&r2=544970
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml Wed Jun  6 14:55:31
2007
@@ -763,7 +763,7 @@
                     Delete by Query
                 </title>
 <programlisting>
-Query q = em.createQuery("DELETE s FROM Subscription s WHERE s.subscriptionDate &lt;
:today");
+Query q = em.createQuery("DELETE FROM Subscription s WHERE s.subscriptionDate &lt; :today");
 q.setParameter("today", new Date());
 int deleted = q.executeUpdate();
 </programlisting>



Mime
View raw message