Thanks a lot! Now I have a new question,how can I delete the datas
which generated when I test my temp application in the local
environment(Eclipse + GAE plugin). Cause  I had to change some
properties of the model,and I met some error of data type unmatch,how
can I delete the former local data which was different from the new
data class?

On 12月15日, 上午1时58分, abhi <[email protected]> wrote:
> Hey,
> try something like this
>
> @PersistenceCapable(identityType = IdentityType.APPLICATION)
> public class MyLongTextExample {
>
>         �...@primarykey
>         �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>           private Long id;
>
>       �...@persistent
>         private Text content;
>
>        public MyLongTextExample(String content) {
>
>                 this.content = new Text(content);
>         }
>
> }
>
> getter for content is something like this
>    public String getContent() {
>         return content.getValue().toString();
>     }

--

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


Reply via email to