[appengine-java] Changing datastore property type

2011-07-06 Thread Jamie
I'm currently storing an ID property as an Integer in the datastore. This ID is actually an ID from a third party API. Recently they announced that this ID field will now be a String type. I understand that different entities of the same kind can have different properties as well as having the

Re: [appengine-java] Changing datastore property type

2011-07-06 Thread jMotta
Jamie, I don't know if get it right, but if it's part of the key it is not possible to change. If this property is not part of the key, then you'll have to deal with it. Probably you're using some persistence framework such as JDO, JPA or Objectify. These are probably trying to bind the

Re: [appengine-java] Changing datastore property type

2011-07-06 Thread Jeff Schnitzer
On Wed, Jul 6, 2011 at 11:50 AM, jMotta jayrmo...@gmail.com wrote: Jamie, I don't know if get it right, but if it's part of the key it is not possible to change. It sounds like the id is being stored as a field/property of an entity - it's basically a foreign key. If this property is not

Re: [appengine-java] Changing datastore property type

2011-07-06 Thread jMotta
*Jamie*, What I meant when I mentioned the low-level API, is because there he will use the Entity type and retrieve the property value as an Object, also he will have full access to the properties that one entity have or not. But it's just for the matter of normalizing his database. Use it as