Hi Ian,

thanks for your reply.

1. :-/

2. What is the difference?

3. Thats how i did it, yes.

Is there another way to story text with more than 500 letters? Simple
String won't work as far as I know.

Thanks
Poe

On 27 Jul., 12:45, Ian Marshall <[email protected]> wrote:
> 1.  I know that the Google team will say that the dev app server is
> only an approximation to the GAE cloud....
>
> 2.  I always use transactions when I am persisting.
>
> 3.  I don't know how you are persisting your text. Is it like this?
>
>   String sContent = ...
>   Text txtContent = null;
>   if (sContent != null)
>     txtContent = new Text(sContent);
>   entry.setContent(txtContent);
>
> That's all I can think of.
>
> On Jul 27, 11:01 am, poe <[email protected]> wrote:
>
>
>
> > The Class for the datastore:
>
> > @PersistenceCapable
> > public class GuestbookEntry {
>
> > ...
>
> > @persistent(defaultFetchGroup ="true")
> > private Text content;
>
> > ...
>
> > }
>
> > Thats how I store it:
>
> > public void add(String title, String content) {
>
> >     PersistenceManager pm = PMF().get().getPersistenceManager();
>
> >    GuestbookEntry entry = new GuestbookEntry(title, content);
>
> >     try {
> >         pm.makePersistent(entry);
>
> >     } finally {
> >       pm.close();
> >     }
>
> > }
>
> > Just how they described it in the appengine docs. As I say, it works
> > pretty fine in development and production mode locally. Am I missing
> > something?
>
> > It's like google appengine didn't know the class datastore.text, there
> > is a null value for the class type in the datastore viewer for the
> > field content.
>
> > Thanks for your help
> > Greets
> > Poe
>
> > On 27 Jul., 10:22, Ian Marshall <[email protected]> wrote:
>
> > > Have you got any code fragments?
>
> > > On Jul 27, 9:03 am, poe <[email protected]> wrote:
>
> > > > I still don't know what the problem is. Please, some help. :-)
>
> > > > On 25 Jul., 11:25, poe <[email protected]> wrote:
>
> > > > > Nope, that didn't solve the problem. Another strange thing is, when I
> > > > > query on the entities I only get one result on the appengine server,
> > > > > locally I get all results that are assigned to the user. Another
> > > > > strange thing is, that the datastore viewer in the appengine admin
> > > > > area shows a "null" value for the fields type.
>
> > > > > Thanks everyone for your help,
> > > > > Greets
> > > > > Poe
>
> > > > > On 25 Jul., 10:40, Ian Marshall <[email protected]> wrote:
>
> > > > > > Is this field in your fetch group when you retrieve data. I use the
> > > > > > following way to ensure that a field is in my default fetch group:
>
> > > > > >   @Persistent(defaultFetchGroup="true")
> > > > > >   private Text content;
>
> > > > > > On Jul 24, 10:34 pm, poe <[email protected]> wrote:
>
> > > > > > > Hi everyone,
>
> > > > > > > i've implemented a small application with
>
> > > > > > > ...
>
> > > > > > > @Persistent
> > > > > > > private Text content;
>
> > > > > > > ...
>
> > > > > > > When I test it locally and store this into the datastore 
> > > > > > > everything
> > > > > > > works fine, when i deploy the app nothing get stored in that field
> > > > > > > "content". What am I doing wrong? I see no errors or exceptions 
> > > > > > > in the
> > > > > > > admin menu.
>
> > > > > > > Greets
> > > > > > > Poe

-- 
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