Reputation: 17269
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
Reputation: 15577
Not supported. at all. DataNucleus internals would almost certainly reject such a change.
Upvotes: 1
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