[appengine-java] Need to update the type of primary key on existing objects in GAE Java

2010-02-02 Thread shaz
Hi, I am building a web app using GAE Java. I have a class that uses a Long ID as its primary key. I now want to create a new class that would be the parent class to this original class (a one to many relationship) however the children that already exist need to have a primary key of type "key",

Re: [appengine-java] Need to update the type of primary key on existing objects in GAE Java

2010-02-04 Thread Ikai L (Google)
It'll probably be easiest to recreate the entities. The thing about Keys is that at the lowest layer, every entity's primary key is a "Key" object. A risky possibility for daredevils: I *think* but I am not sure that if you just changed the property to a Key, it would function for the reason I just