Hi seungjin,

On Thu, Oct 22, 2009 at 2:05 PM, seungjin <seung...@seungjin.net> wrote:
>
> I was trying to cast from Text
> (com.google.appengine.api.datastore.Text) to String with getValue()
> and toString() method but keep getting java.lang.ClassCastException:
> java.lang.String.
>
You can convert Text to String using Text#getValue() as follows:

Text text = new Text("aaa");
assertEquals("aaa", text.getValue());

Hope this helps,

Yasuo Higa

--~--~---------~--~----~------------~-------~--~----~
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-java@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