Jake,
you don't manage null values.
I normally write:
@Persistent
private Text Data;
public void setData(String data) {
if (data == null)
this.Data = null;
else
this.Data = new Text(data);
}
public String getData() {
if (this.Data == null)
return null;
else
return this.Data.getValue();
}
fabrizio
On Mar 12, 8:22 pm, Jake <[email protected]> wrote:
> Hey,
>
> I presume setMethod() refers to a getter/setter. So, your persisted
> class would look like:
>
> @Persistent
> Text text;
>
> public void setText(String s) {
> this.text = new Text(s);
>
> }
>
> public String getText() {
> return this.text.getValue()
>
> }
>
> The App Engine API is your friend:
> http://code.google.com/appengine/docs/java/javadoc/
>
> Jake
--
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.