You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2011/06/09 21:09:35 UTC

svn commit: r1134044 - /incubator/wookie/trunk/src/org/apache/wookie/beans/jpa/impl/WidgetImpl.java

Author: scottbw
Date: Thu Jun  9 19:09:35 2011
New Revision: 1134044

URL: http://svn.apache.org/viewvc?rev=1134044&view=rev
Log:
Fixed a mistake in the JPA implementation of the Author property of a Widget that could lead to an erratic problem with object consistency when uploading losts of widgets at the same time.

Modified:
    incubator/wookie/trunk/src/org/apache/wookie/beans/jpa/impl/WidgetImpl.java

Modified: incubator/wookie/trunk/src/org/apache/wookie/beans/jpa/impl/WidgetImpl.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/beans/jpa/impl/WidgetImpl.java?rev=1134044&r1=1134043&r2=1134044&view=diff
==============================================================================
--- incubator/wookie/trunk/src/org/apache/wookie/beans/jpa/impl/WidgetImpl.java (original)
+++ incubator/wookie/trunk/src/org/apache/wookie/beans/jpa/impl/WidgetImpl.java Thu Jun  9 19:09:35 2011
@@ -330,7 +330,7 @@ public class WidgetImpl extends Localize
      */
     public void setAuthor(IAuthor author) {
       getAuthors().clear();
-      authors.add((AuthorImpl) author);
+      getAuthors().add((AuthorImpl) author);
     }
 
     /* (non-Javadoc)