cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r487118 - in /cocoon/branches/BRANCH_2_1_X: src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java/PersistenceFlow.java status.xml
Date Thu, 14 Dec 2006 08:12:09 GMT
Author: cziegeler
Date: Thu Dec 14 00:12:09 2006
New Revision: 487118

URL: http://svn.apache.org/viewvc?view=rev&rev=487118
Log:
Javaflow OJB Sample: Fix "No method 'showEmployee' found".

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java/PersistenceFlow.java
    cocoon/branches/BRANCH_2_1_X/status.xml

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java/PersistenceFlow.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java/PersistenceFlow.java?view=diff&rev=487118&r1=487117&r2=487118
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java/PersistenceFlow.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/javaflow/java/org/apache/cocoon/samples/flow/java/PersistenceFlow.java
Thu Dec 14 00:12:09 2006
@@ -128,7 +128,8 @@
     public void doShowEmployee() {
         // Query all objects
         ArrayList results = new ArrayList();
-        QueryByCriteria query = new QueryByCriteria(Employee.class, new Criteria());
+        // new Employee().getClass() is a fix for bug COCOON-1969
+        QueryByCriteria query = new QueryByCriteria(new Employee().getClass(), new Criteria());
         for(Iterator i=broker.getCollectionByQuery(query).iterator(); i.hasNext();) {
             results.add(i.next());
         }

Modified: cocoon/branches/BRANCH_2_1_X/status.xml
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/status.xml?view=diff&rev=487118&r1=487117&r2=487118
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/status.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/status.xml Thu Dec 14 00:12:09 2006
@@ -184,6 +184,9 @@
   <release version="@version@" date="@date@">
 -->
   <release version="2.1.10" date="TBD">
+   <action dev="CZ" type="fix" fixes-bug="COCOON-1969" due-to="Jeroen Reijn">
+      Javaflow OJB Sample: Fix "No method 'showEmployee' found".
+   </action>
    <action dev="CZ" type="fix" fixes-bug="COCOON-1970" due-to="Jeroen Reijn">
       The JavaFlow OJB sample overwrote the first entry on insert instead of adding a new
entry.
       This has been fixed.



Mime
View raw message