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
Post a Comment