roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r517889 - /incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
Date Tue, 13 Mar 2007 21:49:55 GMT
Author: agilliland
Date: Tue Mar 13 14:49:54 2007
New Revision: 517889

URL: http://svn.apache.org/viewvc?view=rev&rev=517889
Log:
order planets.


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

Modified: incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java?view=diff&rev=517889&r1=517888&r2=517889
==============================================================================
--- incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
(original)
+++ incubator/roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/hibernate/HibernatePlanetManagerImpl.java
Tue Mar 13 14:49:54 2007
@@ -16,6 +16,7 @@
 
 package org.apache.roller.planet.business.hibernate;
 
+import java.util.Collections;
 import java.util.Date;
 import java.util.Iterator;
 import java.util.List;
@@ -90,6 +91,7 @@
         try {
             Session session = ((HibernatePersistenceStrategy)strategy).getSession();
             Criteria criteria = session.createCriteria(PlanetData.class);
+            criteria.addOrder(Order.asc("title"));
             return criteria.list();
         } catch (HibernateException e) {
             throw new RollerException(e);



Mime
View raw message