I started the "Mungo" project, as a document api to the GAE datastore to 
allow JSON document to be mapped directly into the datastore without any 
sort of configuration and simple access like this:

Mungo mungo = new Mungo(); 
  DB testDB = mungo.getDB("testDB");
  DBCollection messages = testDB.createCollection("Message");
  BasicDBObject obj = new BasicDBObject("{\"hello\" : \"world\"}")
         .append("hi", "there");
  WriteResult wr = messages.insert(obj); // Done!
  DBObject result = messages.findOne(obj.getId()); // Get it

Or 

  Message msg = messages.findOne(obj.getId()).as(Message.class); 

And the one thing I tried best to implement it its feature to map JSON 
string into Entity and EmbeddedEntity, and its ability to retrieve stored 
json "as" as an instance of a specific class (thanks to Google Gson lib); 
However there are still a lot of work to be done here. Hopefully the GAE 
community can try it out.  

https://github.com/pagecrumb/mungo

http://mungods.blogspot.com/

I'm OK to get feedback on how do you think this should turn out. For those 
who want to dig in, let me know, we'd love you to contribute if you find it 
useful. 

Cheers.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to