Can you provide the snippet of persistence code that throws the exception? - Jason
On Mon, Aug 17, 2009 at 6:04 AM, Partha <[email protected]>wrote: > > What is the meaning of this message? I get this error while updating > Parent > > Attempt was made to manually set the id component of a Key primary > key. If you want to control the value of the primary key, set the > name component instead. > > @Entity > public class Tenant { > > @Version() > private Long version; > @Id > @GeneratedValue(strategy = GenerationType.IDENTITY) > private Long tenantId; > > @OneToOne(cascade=CascadeType.ALL) > private Contact contact; > ....... > } > > > @Entity > public class Contact { > > @Version > private Long version; > @Id > @GeneratedValue(strategy = GenerationType.IDENTITY) > private Key contactId; > ..... > } > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
