Use Double instead of double.
Double is an Object --> can be null.

  fabrizio


On Feb 5, 3:23 am, dreamy <dreamy2c...@...> wrote:
> I have create lot of Object in past. when  I add a property " private
> double price;" to this object today .but  i query the record again,the
> exception is throw:
>
> java.lang.NullPointerException: Datastore entity with kind
> PurchaseBilling and key PurchaseBilling(178) has a null property named
> price.  This property is mapped to
> com.datong.drp.model.PurchaseBilling.price, which cannot accept null
> values.
>
> I must clear all data and insert again? is there any other method to
> add this property?

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