我希望在它提出了具體Merchant
,並根據排序的日期時間(dateLog
),以獲得從GAE約會列表:排序谷歌應用程序引擎
PersistenceManager pm = PMF.get().getPersistenceManager();
String query = "select from " + Appointment.class.getName();
query += " where merchant == '" + session.getAttribute("merchant") + "'";
query += " order by dateLog desc range 0,5";
List<Appointment> appointment = (List<Appointment>) pm.newQuery(query).execute();
但是,它會返回錯誤,並我多次檢查/雙重檢查都無濟於事。任何人都可以幫忙我很難過。
這就是它在錯誤日誌中說的:'這個查詢的建議索引是: datastore-index>' –
Melvin