I think you can also use the java transient keyword to tell JDO/JPA to not 
persist it.

Andrei wrote:
Ok, i forgot to put
@NotPersistent

On Jan 26, 1:15 pm, Andrei <[email protected]> wrote:
Thanks, i'll try
What i do not understand, this value is not stored in db

On Jan 26, 1:06 pm, John Patterson <[email protected]> wrote:

You could try using Boolean instead of boolean.
On 27 Jan 2010, at 00:48, Andrei wrote:
I have entity that is already stored in db
I added boolean field that i do not want to store in db, so it's not
marked as @Persistent
When retrieve existing entity from db i get exception
java.lang.NullPointerException: Datastore entity with kind Data and
key Data("mykey") has a null property named needsUpdate.  This
property is mapped to com.foo.Data.needsUpdate, which cannot accept
null values.
What did i do wrong?
-- 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 
athttp://groups.google.com/group/google-appengine-java?hl=en
.


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