,
I was wondering if there is an alternative to using DTO's to send
persistent objects from server to client and vice versa that is
compatible with Google App Engine. The objects are persisted through
JDO. I would appreciate it if you could provide some suggestions.
Thank you.
J D
--
You
Hi,
I was wondering if there is an alternative to using DTO's to send
persistent objects from server to client and vice versa that is
compatible with Google App Engine. The objects are persisted through
JDO. I would appreciate it if you could provide some suggestions.
Thank you.
J D
--
You
What is the problem with DTOs that you're looking to avoid? The
duplication? Being more specific might help people give you relevant
suggestions.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
Yes, I'm trying to avoid having to duplicate, and convert between the DTO
and the persistent object, because I'm worried that the increase in number
of DTO's will result in too much repetition of code.
--
You received this message because you are subscribed to the Google Groups
Google Web
You can try RequestFactory.
On Thu, Aug 11, 2011 at 4:47 PM, J D narusakur...@gmail.com wrote:
Yes, I'm trying to avoid having to duplicate, and convert between the DTO
and the persistent object, because I'm worried that the increase in number
of DTO's will result in too much repetition of
Totally valid concern.
A lot depends on your situation and the purpose of your app. One
alternative is the RequestFactory. I've not used it myself, however.
Another alternative is to just detach your domain objects and send them to
the client. You'll want to be sure there's nothing in there
Thank you for your suggestions. I will look into them promptly.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/VNEXASicZeEJ.
To post to this
I exchange directly JPA annotated POJOs between the client and the
server, and I persist the same objects within the servlet. GWT
compiler ignores the annotations, the servlet use them for
persistence. I do not use RequestFactory (I've not yet studied it,
probably I'll use it in the future but for
What's JPA implementation are you use?
2011/8/11 Cristiano cristiano.costant...@gmail.com
I exchange directly JPA annotated POJOs between the client and the
server, and I persist the same objects within the servlet. GWT
compiler ignores the annotations, the servlet use them for
persistence.