Sending persisted JDO instances over GWT-RPC

前端 未结 6 2092
半阙折子戏
半阙折子戏 2020-12-24 07:30

I\'ve just started learning Google Web Toolkit and finished writing the Stock Watcher tutorial app.

Is my thinking correct that if one wants to persist a bus

6条回答
  •  甜味超标
    2020-12-24 08:06

    I finally found a solution. Don't change your object at all, but for the listing do it this way:

    List secureList=(List)pm.newQuery(query).execute();
    return new ArrayList(secureList);
    

    The actual problem is not in Serializing the Object... the problem is to Serialize the Collection class which is implemented by Google and is not allowed to Serialize out.

提交回复
热议问题