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

On Mar 11, 8:37 pm, Tristan <tristan.slomin...@gmail.com> wrote:
> Lloyd,
>
> String reallyLong = "It was the best of times, it was the worst of
> times..... (...) ..";
>
> Text myText = new Text(reallyLong);
>
> I don't understand your reference to "setMethod()".
>
> Cheers!
>
> On Mar 10, 10:53 pm, Lloyd <cled...@gmail.com> wrote:
>
> > I have persistent object, with a string property that often is over
> > 500 charachters. Google App Engine says I need to save it as a
> > com.google.appengine.api.datastore.Text.
>
> > How do I either convert a String type to a
> > com.google.appengine.api.datastore.Text type so I can use a
> > setMethod() on the property, or otherwise get my long sting data into
> > that persistent value?

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to