GAEのデータストアに500文字以上を登録した場合のException
Uncaught exception from servlet java.lang.IllegalArgumentException: recommend: String properties must be 500 characters or less. Instead, use com.google.appengine.api.datastore.Text, which can store strings of any length.
以下のようにすると上のエラーが発生
private String recommend; coupon.setRecommend("500文字以上の文字列");
以下のようにText型で保持するようにする。
private Text recommend; coupon.setRecommend(new Text("500文字以上の文字列"));
ただこうした場合、既に登録されている。
String recommendを取得する際に型変換エラーになってしまうな。
一回消さないとダメなのかな。。