Re: Alternative to DTO's

2011-08-15 Thread J.Ganesan
, 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

Alternative to DTO's

2011-08-11 Thread J D
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

Re: Alternative to DTO's

2011-08-11 Thread objectuser
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

Re: Alternative to DTO's

2011-08-11 Thread J D
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

Re: Alternative to DTO's

2011-08-11 Thread Pavel Byles
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

Re: Alternative to DTO's

2011-08-11 Thread objectuser
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

Re: Alternative to DTO's

2011-08-11 Thread J D
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

Re: Alternative to DTO's

2011-08-11 Thread Cristiano
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

Re: Alternative to DTO's

2011-08-11 Thread Juan Pablo Gardella
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.