Hello everyone,
I have faced a problem with datastore (Java).
my code is :
String msg ="....";
.....
entity.setProperty("message",new Text(msg));
datastore.put(entity);
But when i try to retrieve this property with this code :
Query q= new Query("entityname");
PreparedQuery pq = datastore.prepare(pq);
for(Entity e: pq.asIterable()){
out.prinln(e.getProperty("message"));
}
And this is not priniting the message.Can anybody tell me where did i go
wrong ?
I used Text because String has limit of 500 characters.
I even tried this :
Text td = (Text)e.getProperty("message");
out.println(td);
Even this is not prininting anything.
Can anybody help me out on this .
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/KhZeWu5Ls54J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.