我正在尝试删除在GAE中存储数据的列表的第一个元素。
这是代码
List<Greeting> greetings = ObjectifyService.ofy()
.load()
.type(Greeting.class) // We want only Greetings
.ancestor(theBook) // Anyone in this book
.order("-date") // Most recent first - date is indexed.
.limit(6) // Only show 5 of them.
.list();
int i = greetings.size();
if(i>5){
//delete the first element in the list
}