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() retu
Hi,
Question from side: do Payment & Invoice belong to the same entity
group as Party ? I ask this because of the transactional implications
it will have when you modify keys in Payments & Invoices.
regards
didier
On Oct 30, 5:04 am, aswath satrasala
wrote:
> Hi,
> Further, on this... which lea
Hi,
Since they all belong to the same entity group, you have to recreate
also the other entities as well.
I would personally handle that per entity group, i.e launch a task
(for parallelism) per entity group then recreate the parent of the
entity group in the new namespace, then recreate all the
Hi,
Further, on this... which leads to how changing of the namespace can be done
using mapreduce.
If I recreate entities, then if the keys are stored as references in other
entities also needs to be recreated.
Ex.
class Party {
@Long id
Key tenantKey; // partitioning/filtering
String fname
Good point. They belong to the same entity group. The more complete
Objectify class is shown.
public class Payment implements IsSerializable {
@Id
private Long id;
@Parent Key parentPartyKey;
private String comments;
private double amount;
}
public class Invoice IsSerializabl