Hello, we wrote automatic DAO generator for GAE/J, currently it supports both JDO and low-level API implementations. http://audao.spoledge.com
Probably the DAO generator is not for you, because you need dynamic approach. But you can download generated Java sources which use low-level API on the "Examples" page, e.g.: http://audao.spoledge.com/examples/dao/todoizer-2-gae.zip Or you can try to generate your own DAO layer and see what happens inside. The generator also translates GQL queries into low-level API calls - e.g.: SELECT * FROM TodoTag WHERE ANCESTOR IS KEY('RegisteredUser', :1) AND tagId = :2 Query _query = new Query("TodoTag"); _query.setAncestor(new KeyFactory.Builder("RegisteredUser", userId).getKey()); _query.addFilter("tagId", Query.FilterOperator.EQUAL, tagId); Hope this helps. Vaclav On Jan 14, 9:50 am, philip <[email protected]> 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/goo... > > 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 [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-java?hl=en.
