roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r544276 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Register.java
Date Mon, 04 Jun 2007 21:27:25 GMT
Author: agilliland
Date: Mon Jun  4 14:27:24 2007
New Revision: 544276

URL: http://svn.apache.org/viewvc?view=rev&rev=544276
Log:
don't set id to null, pojo id values are automatically given uuids at construction time and
we need them to save the objects.


Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Register.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Register.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Register.java?view=diff&rev=544276&r1=544275&r2=544276
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Register.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Register.java
Mon Jun  4 14:27:24 2007
@@ -121,7 +121,6 @@
             // copy form data into new user pojo
             User ud = new User();
             getBean().copyTo(ud); // doesn't copy password
-            ud.setId(null);
             ud.setUserName(getBean().getUserName());
             ud.setDateCreated(new java.util.Date());
             ud.setEnabled(Boolean.TRUE);



Mime
View raw message