[seam-commits] Seam SVN: r14383 - branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Mar 9 04:49:43 EST 2012


Author: rsmeral
Date: 2012-03-09 04:49:42 -0500 (Fri, 09 Mar 2012)
New Revision: 14383

Modified:
   branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java
Log:
ordering added to allCategories query in CategoryAction

Modified: branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java	2012-03-09 09:48:42 UTC (rev 14382)
+++ branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java	2012-03-09 09:49:42 UTC (rev 14383)
@@ -48,7 +48,7 @@
    @WebRemote
    public List<Category> getAllCategories()
    {
-      allCategories = entityManager.createQuery("from Category").getResultList(); 
+      allCategories = entityManager.createQuery("from Category order by categoryId").getResultList(); 
       return allCategories;
    }
    



More information about the seam-commits mailing list