Author: rsmeral
Date: 2012-03-09 04:48:42 -0500 (Fri, 09 Mar 2012)
New Revision: 14382
Modified:
branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java
Log:
ordering added to allCategories query in CategoryAction
Modified:
branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java
===================================================================
---
branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java 2012-03-09
09:45:53 UTC (rev 14381)
+++
branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java 2012-03-09
09:48:42 UTC (rev 14382)
@@ -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;
}
Show replies by date