我试图以两种不同的方式从数据存储区读取数据,所以我想读取最后5个对象以及所有对象。但我发现了这个错误:
List cannot be resolved
90: String query = "select from " + Greeting.class.getName() + " order by date desc range 0,1";
91: String query3 = "select from " + Greeting.class.getName();
92: List<Greeting>greetings =(List<Greeting>)
93: List<Greeting>greetings2 =(List<Greeting>)
94:
95: pm.newQuery(query).execute();
96: pm.newQuery(query3).execute();