i declared the object as follows:
public class MyEntity {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private String text;
}
Now I want to get objects using id. I tried to manage it from the Google Appengine Data Viewer using "SELECT * FROM MyEntity Where id = 382005" or using a request in the servlet. I am not getting any results. But I know for sure that an object with an identifier exists (I created jsp that requests all the objects in db and displays them in db).
So what is wrong with my request? Am I requesting the wrong field? The Google Appengine Data Viewer names the field "ID / name" and has the value "id = 382005". Should I request these names? I tried, but it did not work :(