Altaf Rahman
Altaf Rahman

Reputation: 31

using com.google.appengine.api.datastore.Text

i am developing an application on Google app Engine i am saving HTML text in datastore using com.google.appengine.api.datastore.Text. All transaction working fine except for partial string which is stored in datastore. i don't the exact problem.

Upvotes: 3

Views: 535

Answers (1)

Derrick
Derrick

Reputation: 2021

The "java.lang.String" that you would typically use is limited to 500 characters.

You need to import and use

import com.google.appengine.api.datastore.Text;
....


class HtmlItem {

     @Persistent
     private Text html;
}

Upvotes: 1

Related Questions