Hi Ronoaldo,

This is fine. But i want to store the arraylist directly to datastore.
So

Entity e = new Entity("Citynames");
e.setProperty("name", list);
DatastoreServiceFactory.getDatastoreService().put(e);

How is the above functionality possible?


2011/9/15 Ronoaldo José de Lana Pereira <rpere...@beneficiofacil.com.br>

> Hi Deepak,
>
> You may be interested on the Storing Data part of the 
> documentation<http://code.google.com/intl/en/appengine/docs/java/datastore/>.
>  It explains how the Datastore works and how you can use the raw Entity
> class to store data. This is the "low level datastore" way to persist your
> data:
>
> Entity e = new Entity("Citynames");
> e.setProperty("name", "Name of the City");
> DatastoreServiceFactory.getDatastoreService().put(e);
>
> This is not the usual way to store Java objects, but is the raw way. I
> recomend you to look at Objectify 
> documentation<http://code.google.com/p/objectify-appengine/wiki/IntroductionToObjectify>,
> probrably the greatest persistency layer for appengine out there.
>
> Hope this helps.
>
> Best Regards,
>
> -Ronoaldo
>
> --
> 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/-/TZVTugAw1dQJ.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to