GWT RequestFactory not persisting attached entities

岁酱吖の 提交于 2019-12-03 08:54:38

RequestFactory doesn't treat the persist() method as anything special, so you have to implement chained persists on your own or configure your ORM system to do it for you. Another thing to check is that the findPerson() and findOffice() methods return the same object instance of the Person or Office object if called more than once. If you use the same EntityManager (or your system's equivalent) throughout the lifetime of the incoming HTTP request, that usually takes care of the "missing updates" problem with non-trivial payload graphs.

A blog post about chained persistence and an issue tracker link with a short discussion.

If this doesn't help, could you post an example of your domain objects' findFoo() and persist() methods?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!