Joel Weight wrote a data store service that I thought was easy to understand.  Reading 
his code made me realize that what's in the data store is basically the fields of the 
object, without the object itself; therefore to "re-hydrate" an object from the 
data store, you first instantiate/new the object, then fetch its row from the data store, 
then for each property you got from the data store, call the object's setter with it.

http://kenai.com/projects/seedsofchance/sources/subversion/content/soc/src/java/jota/soc/data/service/DataServiceImpl.java


philip wrote:
Hi All,

I want to use the low level datastore, I looked at the documentation
and it looks ... complex.
http://code.google.com/intl/zh-HK/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary.html

Basically, I have a client program which needs to create tables and
their entities dynamically, so the columns would change over time.
This does not fit well with JDO as it works for fixed column entitys
that are annotated. So I thought to use the low level API but it looks
difficult. Is there any example code around?

Alternatively, can someone suggest another way?

Phil

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


Reply via email to