portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r645901 - /portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/main/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
Date Tue, 08 Apr 2008 13:24:31 GMT
Author: ate
Date: Tue Apr  8 06:24:30 2008
New Revision: 645901

URL: http://svn.apache.org/viewvc?rev=645901&view=rev
Log:
Fix implicit String to Integer typecasting error when using new PostgreSQL 8.3

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/main/java/org/apache/jetspeed/page/impl/DatabasePageManager.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/main/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/main/java/org/apache/jetspeed/page/impl/DatabasePageManager.java?rev=645901&r1=645900&r2=645901&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/main/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/main/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
Tue Apr  8 06:24:30 2008
@@ -692,7 +692,7 @@
         {
             // query for folders
             Criteria filter = new Criteria();
-            filter.addEqualTo("parent", folderImpl.getId());
+            filter.addEqualTo("parent", Integer.valueOf(folderImpl.getId()));
             QueryByCriteria query = QueryFactory.newQuery(FolderImpl.class, filter);
             Collection folders = getPersistenceBrokerTemplate().getCollectionByQuery(query);
 
@@ -749,7 +749,7 @@
         {
             // query for pages
             Criteria filter = new Criteria();
-            filter.addEqualTo("parent", folderImpl.getId());
+            filter.addEqualTo("parent", Integer.valueOf(folderImpl.getId()));
             QueryByCriteria query = QueryFactory.newQuery(PageImpl.class, filter);
             Collection pages = getPersistenceBrokerTemplate().getCollectionByQuery(query);
 
@@ -806,7 +806,7 @@
         {
             // query for links
             Criteria filter = new Criteria();
-            filter.addEqualTo("parent", folderImpl.getId());
+            filter.addEqualTo("parent", Integer.valueOf(folderImpl.getId()));
             QueryByCriteria query = QueryFactory.newQuery(LinkImpl.class, filter);
             Collection links = getPersistenceBrokerTemplate().getCollectionByQuery(query);
 
@@ -868,7 +868,7 @@
             {
                 // query for page security
                 Criteria filter = new Criteria();
-                filter.addEqualTo("parent", folderImpl.getId());
+                filter.addEqualTo("parent", Integer.valueOf(folderImpl.getId()));
                 QueryByCriteria query = QueryFactory.newQuery(PageSecurityImpl.class, filter);
                 PageSecurity document = (PageSecurity)getPersistenceBrokerTemplate().getObjectByQuery(query);
 
@@ -906,7 +906,7 @@
             // query for all nodes
             List all = DatabasePageManagerUtils.createList();
             Criteria filter = new Criteria();
-            filter.addEqualTo("parent", folderImpl.getId());
+            filter.addEqualTo("parent", Integer.valueOf(folderImpl.getId()));
             QueryByCriteria query = QueryFactory.newQuery(FolderImpl.class, filter);
             Collection folders = getPersistenceBrokerTemplate().getCollectionByQuery(query);
             if (folders != null)
@@ -1221,7 +1221,7 @@
         {
             // construct general node query criteria
             Criteria filter = new Criteria();
-            filter.addEqualTo("parent", folderImpl.getId());
+            filter.addEqualTo("parent", Integer.valueOf(folderImpl.getId()));
 
             // update pages
             QueryByCriteria query = QueryFactory.newQuery(PageImpl.class, filter);
@@ -1345,7 +1345,7 @@
         {
             // construct general node query criteria
             Criteria filter = new Criteria();
-            filter.addEqualTo("parent", folderImpl.getId());
+            filter.addEqualTo("parent", Integer.valueOf(folderImpl.getId()));
 
             // remove folders first: depth first recursion
             QueryByCriteria query = QueryFactory.newQuery(FolderImpl.class, filter);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message