JR Galia
JR Galia

Reputation: 17269

Change AppEngine DataStore Primary Key

I'm using JPA and for the primary key i have:

@Id
private String emailAddress;

Is it possible to update primary key emailAddress?

Upvotes: 0

Views: 158

Answers (2)

DataNucleus
DataNucleus

Reputation: 15577

Not supported. at all. DataNucleus internals would almost certainly reject such a change.

Upvotes: 1

Shay Erlichmen
Shay Erlichmen

Reputation: 31928

Although this might be supported it is very dangerous, you better off crating a new kind of entity and replacing your existing objects with it.

Upvotes: 2

Related Questions