cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgen...@apache.org
Subject svn commit: r823554 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/SelectQueryOrderingTab.java
Date Fri, 09 Oct 2009 13:56:46 GMT
Author: mgentry
Date: Fri Oct  9 13:56:46 2009
New Revision: 823554

URL: http://svn.apache.org/viewvc?rev=823554&view=rev
Log:
Updates for CAY-1283.

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/SelectQueryOrderingTab.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/SelectQueryOrderingTab.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/SelectQueryOrderingTab.java?rev=823554&r1=823553&r2=823554&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/SelectQueryOrderingTab.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/SelectQueryOrderingTab.java
Fri Oct  9 13:56:46 2009
@@ -55,6 +55,7 @@
 import org.apache.cayenne.query.Ordering;
 import org.apache.cayenne.query.Query;
 import org.apache.cayenne.query.SelectQuery;
+import org.apache.cayenne.query.SortOrder;
 import org.apache.cayenne.util.CayenneMapEntry;
 
 /**
@@ -269,7 +270,7 @@
             }
         }
 
-        selectQuery.addOrdering(new Ordering(orderingPath, Ordering.ASC));
+        selectQuery.addOrdering(new Ordering(orderingPath, SortOrder.ASCENDING));
         int index = selectQuery.getOrderings().size() - 1;
 
         OrderingModel model = (OrderingModel) table.getModel();



Mime
View raw message