roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r465605 - /incubator/roller/trunk/src/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
Date Thu, 19 Oct 2006 12:29:48 GMT
Author: snoopdave
Date: Thu Oct 19 05:29:47 2006
New Revision: 465605

URL: http://svn.apache.org/viewvc?view=rev&rev=465605
Log:
Bug fix in planet agg query

Modified:
    incubator/roller/trunk/src/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java

Modified: incubator/roller/trunk/src/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java?view=diff&rev=465605&r1=465604&r2=465605
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
(original)
+++ incubator/roller/trunk/src/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
Thu Oct 19 05:29:47 2006
@@ -295,7 +295,7 @@
                 }
                 sb.append("order by e.pubTime desc");
                 Query query = session.createQuery(sb.toString());
-                query.setEntity("groupHandle", group.getHandle());
+                query.setParameter("groupHandle", group.getHandle());
                 query.setFirstResult(offset);
                 if (length != -1) query.setMaxResults(length);
                 query.setParameter("endDate", endDate);



Mime
View raw message