Is TestEntity.position a primitive datatype? Primitive datatypes can't
be null so that's probably the problem. Use Integer instead of int,
Double instead of double etc. And be aware that the property will be
null for all your existing entities.

Cheers, Chris

On Mar 23, 2:49 pm, sree <[email protected]> wrote:
> when a new property is added for an existing entity, new entity will
> be created along with the new property,
> whereas the old entity shows as missing for the new property.
>
> when a query is executed
>
> the following exception is shown.
>
> Exception : java.lang.NullPointerException: Datastore entity with kind
> TestEntity and key TestEntity(9001) has a null property named
> position.  This property is mapped to com.entity.TestEntity.position,
> which cannot accept null values.
>
> how to add new property for an existing entity ?

-- 
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.

Reply via email to