Hi all,
I have a question relating to @Lob annotation in JPA (when using
google app engine datastore):
When not annotating a string field, yet placing a string greater than
500 characters in it, I get an exception, asking me to use:
"com.google.appengine.api.datastore.Text" instead.
This is fine, I agree that I should not save a string greater than 500
characters in a "varchar" column. However, when using the @Lob
annotation, and persisting the entity, I get the below StackTrace.
Any ideas how to avoid this ?
Kind Regards
Marcus
java.lang.NullPointerException
at com.google.appengine.api.datastore.Text.toString(Text.java:
85)
at java.lang.String.valueOf(String.java:2826)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:
150)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:
127)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObjects(DatastorePersistenceHandler.java:
254)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject(DatastorePersistenceHandler.java:
240)
at
org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent(JDOStateManagerImpl.java:
3185)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en.