Hi,

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/NamespaceManager.html
says

"When a namespace aware class (e.g., Key, Query and MemcacheService)
is constructed, it determines which namespace will be used by calling
get() if it is otherwise unspecified. If get() returns null, the
current namespace is unset and these APIs will use the empty ("")
namespace in its place. "

So, I would guess that you have to recreate / copy your entities after
having set namespace via NameSpaceManager.set() if you want to move
them into a new namespace

regards
didier

On Oct 28, 11:34 am, aswath satrasala <[email protected]>
wrote:
> Hello,
> I have an multi-tenant app-id, and I have designed on partitioning the
> entities based on  url parameters.  I am not using the namespace yet.
>
> For example,
>
> Tenant {
> @Id name+email;
>
> }
>
> class Party {
>   @Long id
>   Key<Tenant> tenantKey;  // partitioning/filtering
>   String fname
>
> }
>
> Now, I am planning to use the NamespaceManager for the Party entities.  I
> want to use the mapreduce and apply the namespace on the existing Party
> entities.
> Can a namespace be changed from empty to certain value on the existing
> entity.
>
> -Aswathhttp://vs-accounting.appspot.com

-- 
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.

Reply via email to