Are you using something other than GAE? Why do you want to persist the
object with php?

Here is an example using JDO's.

@PersistenceCapable
public class Pair implements IsSerializable {
    @PrimaryKey
    public long encodedKey;

        @Persistent
        public String mName;
        @Persistent
        public String mValue;
}

You can persist page one by doing the following.

    JDOHelper.getPersistenceManagerFactory("transactions-
optional").getPersistenceManager().makePersistent(page1);

You can retrieve all page objects by doing the following. If you want
one specific page, then add filters to the query.

    JDOHelper.getPersistenceManagerFactory("transactions-
optional").getPersistenceManager().newQuery(Pages.class).execute();

When you pass the object from the server to the client, it will
automatically be serialized and deserialized.

Hope that helps,

Tom

On Aug 17, 4:11 am, Tadas Davidsonas <[email protected]>
wrote:
> Dear professionals,
>
> I want to save gwt classes object in the database and later to
> retrieve them back for use. Imagine that I have a class:
>
> Pages{
>   String pageName;
>   String pageUrl;
>
> }
>
> and create an object:
>
> Pages page1 = new Pages();
>
> How can I:
>
> 1) Serialize 'page1' object.
> 2) Sent it to database with php
> 3) get to gwt again
> 4) desirealize and use it
>
> Serialize and desirealize parts are the most important to me. Best
> wishes to you and I'm waiting your help. I haven't found any tutorial
> for this which works without bugs.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to