Sending persisted JDO instances over GWT-RPC

前端 未结 6 2086
半阙折子戏
半阙折子戏 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:14

    You don't have to create separate instances at all, in fact you're better off not doing it. Your JDO objects should be plain POJOs anyway, and should never contain business logic. That's for your business layer, not your persistent objects themselves.

    All you need to do is include the source for the annotations you are using and GWT should compile your class just fine. Also, you want to avoid using libraries that GWT can't compile (like things that use reflection, etc.), but in all the projects I've done this has never been a problem.

提交回复
热议问题