roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r476572 - in /incubator/roller/trunk/src/org/apache/roller: business/hibernate/HibernateUserManagerImpl.java pojos/WeblogCategoryData.java
Date Sat, 18 Nov 2006 18:01:12 GMT
Author: agilliland
Date: Sat Nov 18 10:01:11 2006
New Revision: 476572

URL: http://svn.apache.org/viewvc?view=rev&rev=476572
Log:
change WeblogCategory constructor to not accept an id because id should always be null for
new categories.


Modified:
    incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java
    incubator/roller/trunk/src/org/apache/roller/pojos/WeblogCategoryData.java

Modified: incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java?view=diff&rev=476572&r1=476571&r2=476572
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java
(original)
+++ incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateUserManagerImpl.java
Sat Nov 18 10:01:11 2006
@@ -290,7 +290,6 @@
         
         // add default category
         WeblogCategoryData rootCat = new WeblogCategoryData(
-                null,      // id
                 newWeblog, // newWeblog
                 null,      // parent
                 "root",    // name
@@ -304,7 +303,6 @@
             String[] splitcats = cats.split(",");
             for (int i=0; i<splitcats.length; i++) {
                 WeblogCategoryData c = new WeblogCategoryData(
-                        null,            // id
                         newWeblog,       // newWeblog
                         rootCat,         // parent
                         splitcats[i],    // name

Modified: incubator/roller/trunk/src/org/apache/roller/pojos/WeblogCategoryData.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/WeblogCategoryData.java?view=diff&rev=476572&r1=476571&r2=476572
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/WeblogCategoryData.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/WeblogCategoryData.java Sat Nov 18
10:01:11 2006
@@ -57,13 +57,13 @@
     }
     
     public WeblogCategoryData(
-            java.lang.String id,
             WebsiteData website,
             WeblogCategoryData parent,
             java.lang.String name,
             java.lang.String description,
             java.lang.String image) {
-        this.id = id;
+        
+        this.id = null;
         this.website = website;
         this.name = name;
         this.description = description;



Mime
View raw message