google app engine - How to create AppEngine Key object with assigned namespace with Java API? -


i create appengine key-object assigned given namespace. python api provides corresponding parameter in key.from_path(...)-method, none of methods in java api's keyfactory mention namespaces anywhere.

is way use namespacemanager.set(...) before call constructor of key?

or work magic entities.createnamespacekey(...)? maybe using result of parent when create actual key?

you can not use entities.createnamespacekey(...) create namespace-aware key (i.e. switch namespaces). method helper method when using namespace metadata queries.

so way switch namespaces via namespacemanager.set(...).


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -