Hello,
I have a TeamAllocation table that has the following -
sStudentID
sCourseID
nTeamNumber
However, I cannot seem to sort the data with my queries.
String sQuery = "select from " + TeamAllocation.class.getName() + "
where sCourseID == '" + sCourseID + "' order by nTeamNumber desc";
and
Query query = persistenceManager.newQuery(TeamAllocation.class);
query.setFilter("sCourseID == courseid");
query.setOrdering("nTeamNumber desc");
query.declareParameters("String courseid");
List<TeamAllocation> lTeamAllocation =
(List<TeamAllocation>)query.execute(sCourseID);
I can get the data out, but once I add in the ORDER BY clause, I get
errors! Does anyone know why?
Thank you.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.