1.i able to persist entity, and in _admin , i able to see key, id/name. total 6 results. but why it not show all the property inside my entity class?
2. when i try use createQuery , i cannot load the object. there is no error in the console. the code just stuck afer hitting query.getResultList();
14:41:31,047 DEBUG [DataNucleus.Persistence] - Object Manager "org.datanucleus.ObjectManagerImpl@3328e909" opened for datastore "org.datanucleus.store.appengine.DatastoreManager@71e852be"
14:41:31,047 DEBUG [DataNucleus.Persistence] - Object Manager "org.datanucleus.ObjectManagerImpl@3328e909" opened for datastore "org.datanucleus.store.appengine.DatastoreManager@71e852be"
14:41:31,202 DEBUG [DataNucleus.Persistence] - Object Manager "org.datanucleus.ObjectManagerImpl@3328e909" closed
14:41:31,202 DEBUG [DataNucleus.Persistence] - Object Manager "org.datanucleus.ObjectManagerImpl@3328e909" closed
my dao look like
public <T> List<T> list(Class<T> entityClass) {
//String queryStr = " from " + entityClass.getName();
String queryStr= "select c from com.test.testing.model.Usertest c";
Query query=entityManager.createQuery(queryStr);
return (List<T>) query.getResultList();
}
what i see in _admin
Key ID/Name
agt0ZXN0ZXRlZnNkZnIOCxIIdXNlcnRlc3QYAQw 1
agt0ZXN0ZXRlZnNkZnIOCxIIdXNlcnRlc3QYAgw 2
agt0ZXN0ZXRlZnNkZnIOCxIIdXNlcnRlc3QYAww 3
agt0ZXN0ZXRlZnNkZnIOCxIIdXNlcnRlc3QYBAw 4
agt0ZXN0ZXRlZnNkZnIOCxIIdXNlcnRlc3QYBQw 5
agt0ZXN0ZXRlZnNkZnIOCxIIdXNlcnRlc3QYBgw 6
agt0ZXN0ZXRlZnNkZnIOCxIIdXNlcnRlc3QYBww 7