DTO + GWT

130 views
Skip to first unread message

Akram Moncer

unread,
Apr 24, 2012, 4:30:48 AM4/24/12
to google-we...@googlegroups.com
hello every body;


i created a web application with GWT and for persistence i use the google app engine datastore but , to transfert data between server and client i should use DTO(data transfert object) but i don't know how can i do it,

so i will be grateful if someone can help me with example or any information




thinks

--
Akram MONCER
Personne

Stefan Ollinger

unread,
Apr 24, 2012, 4:52:49 AM4/24/12
to google-we...@googlegroups.com
Hello Akram,

Data Transfer Objects are just simple POJOs which are used to transfer data to the client.
Take a look at Dozer to map data from your business objects to DTOs: http://dozer.sourceforge.net/documentation/about.html

Regards,
Stefan
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Akram Moncer

unread,
Apr 24, 2012, 5:10:36 AM4/24/12
to google-we...@googlegroups.com
thinks a lot 

i have a big model of database, and i have association between entities, do i have to create the same association between the DTO ?

Le 24 avril 2012 09:52, Stefan Ollinger <Stefan....@gmx.de> a écrit :

Hello Akram,

Data Transfer Objects are just simple POJOs which are used to transfer data to the client.
Take a look at Dozer to map data from your business objects to DTOs: http://dozer.sourceforge.net/documentation/about.html

Regards,
Stefan

Am 24.04.2012 10:30, schrieb Akram Moncer:
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Akram MONCER
Personne

Stefan Ollinger

unread,
Apr 24, 2012, 12:25:44 PM4/24/12
to google-we...@googlegroups.com
1:1 DTOs are not required. I think you can configure Dozer. You could for example create multiple views of your business model.

Regards,
Stefan

Andy Stevko

unread,
Apr 24, 2012, 7:31:20 PM4/24/12
to google-we...@googlegroups.com
I really recommend looking at objectify - the objects are capable of being detached from the datastore and transferred to/from the client.
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M. Andretti





Rob

unread,
Apr 24, 2012, 8:58:36 PM4/24/12
to Google Web Toolkit
Hi,

If you only need to support one persistence store and its GAE then
Objectify is the most popular option (and you won't need to create
separate DTOs).

If you need to support other persistence stores (e.g. PostgreSQL,
HSQLDB) then you might consider using DTOs in combination with
DataNucleus (http://code.google.com/p/datanucleus-appengine/) and JPA
(http://code.google.com/p/datanucleus-appengine/wiki/
UpgradingToVersionTwo).

Cheers
Rob

http://code.google.com/p/gwt-cx/

On Apr 25, 9:31 am, Andy Stevko <andy.ste...@gmail.com> wrote:
> I really recommend looking at objectify - the objects are capable of being
> detached from the datastore and transferred to/from the client.
>
> On Tue, Apr 24, 2012 at 9:25 AM, Stefan Ollinger <Stefan.Ollin...@gmx.de>wrote:
>
>
>
>
>
>
>
>
>
> >  1:1 DTOs are not required. I think you can configure Dozer. You could for
> > example create multiple views of your business model.
>
> > Regards,
> > Stefan
>
> > Am 24.04.2012 11:10, schrieb Akram Moncer:
>
> >  thinks a lot
>
> >  i have a big model of database, and i have association between entities,
> > do i have to create the same association between the DTO ?
>
> > Le 24 avril 2012 09:52, Stefan Ollinger <Stefan.Ollin...@gmx.de> a écrit :
>
> >>  [image: Boxbe] <https://www.boxbe.com/overview>
> >> google-we...@googlegroups.com is not on your Guest List<https://www.boxbe.com/approved-list>| Approve
> >> sender <https://www.boxbe.com/anno?tc=11171384182_158310061> | Approve
> >> domain <https://www.boxbe.com/anno?tc=11171384182_158310061&dom>
Reply all
Reply to author
Forward
0 new messages