How can one convert from String to Text
java.lang.String
to
com.google.appengine.api.datastore.Text;
and vise-versa?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check Javadoc about
Textclass. It has two methods:toString()andgetValue().But
toString()returns first 70 characters only.So, use
getValue()instead:Contructor of the
Textclass supports initialization with a string value. And (as Javadoc says), this object cannot be modified after construction.