我希望从 GAE 获取特定的约会列表,Merchant
并根据约会的日期时间进行排序(dateLog
):
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();
但是,它返回错误,我已经多次检查/仔细检查无济于事。任何人都可以帮忙吗?我难住了。