roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r505444 - in /incubator/roller/branches/roller_4.0/src/org/apache/roller: business/datamapper/DatamapperWeblogManagerImpl.java pojos/WeblogCategoryData.orm.xml
Date Fri, 09 Feb 2007 19:36:17 GMT
Author: snoopdave
Date: Fri Feb  9 11:36:16 2007
New Revision: 505444

URL: http://svn.apache.org/viewvc?view=rev&rev=505444
Log:
Fixing another category query test failure

Modified:
    incubator/roller/branches/roller_4.0/src/org/apache/roller/business/datamapper/DatamapperWeblogManagerImpl.java
    incubator/roller/branches/roller_4.0/src/org/apache/roller/pojos/WeblogCategoryData.orm.xml

Modified: incubator/roller/branches/roller_4.0/src/org/apache/roller/business/datamapper/DatamapperWeblogManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_4.0/src/org/apache/roller/business/datamapper/DatamapperWeblogManagerImpl.java?view=diff&rev=505444&r1=505443&r2=505444
==============================================================================
--- incubator/roller/branches/roller_4.0/src/org/apache/roller/business/datamapper/DatamapperWeblogManagerImpl.java
(original)
+++ incubator/roller/branches/roller_4.0/src/org/apache/roller/business/datamapper/DatamapperWeblogManagerImpl.java
Fri Feb  9 11:36:16 2007
@@ -490,7 +490,7 @@
         if (includeRoot) return getWeblogCategories(website);
         
         return (List) strategy.newQuery(WeblogCategoryData.class, 
-                "WeblogCategoryData.getByWebsite&ParentNull").execute(website);
+                "WeblogCategoryData.getByWebsite&ParentNotNull").execute(website);
     }
 
     /**

Modified: incubator/roller/branches/roller_4.0/src/org/apache/roller/pojos/WeblogCategoryData.orm.xml
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_4.0/src/org/apache/roller/pojos/WeblogCategoryData.orm.xml?view=diff&rev=505444&r1=505443&r2=505444
==============================================================================
--- incubator/roller/branches/roller_4.0/src/org/apache/roller/pojos/WeblogCategoryData.orm.xml
(original)
+++ incubator/roller/branches/roller_4.0/src/org/apache/roller/pojos/WeblogCategoryData.orm.xml
Fri Feb  9 11:36:16 2007
@@ -21,6 +21,9 @@
         <named-query name="WeblogCategoryData.getByWebsite&amp;ParentNull">
                 <query>SELECT w FROM WeblogCategoryData w WHERE w.website = ?1 AND
w.parent IS NULL</query>
         </named-query>
+        <named-query name="WeblogCategoryData.getByWebsite&amp;ParentNotNull">
+                <query>SELECT w FROM WeblogCategoryData w WHERE w.website = ?1 AND
w.parent IS NOT NULL</query>
+        </named-query>
         <attributes>
             <id name="id">
                 <column name="id"/>



Mime
View raw message