Hi Rafael,
That is correct. Any widgets or POJOs you would like to use on the
client-side must have their source available for the GWT compiler to see,
optimize and cross-compile it. However, since you mentioned that the classes
you want to reuse are ORM generated and a little more than POJOs, you still
might not be able to use those classes in your client-side GWT code.

The thing to keep in mind is that GWT code gets cross-compiled to
JavaScript. This means that anything you write in your GWT code must have
some rough equivalent in the JavaScript world. This makes sense for things
like java.util.Map and java.util.List, but less so for things like
java.io.FileWriter or java.util.Semaphore. The list of types that GWT
supports from the JRE world can be found in the Emulated JRE documentation
(link below). This means that as long as the ORM generated classes only use
types that are supported in the Emulated JRE, you should be able to use them
on the client-side GWT code. If not, you'll have to create your own data
transfer objects (DTOs) or you might want to look into the Gilead project,
which provides a way for reusing ORM types seamlessly in your GWT code. Many
developers have been using this library to integrate with Hibernate, which
also does its own class generation and has its own inheritance hierarchy for
certain types mapped to the database.

Emulated JRE:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation

Gilead project:
http://noon.gilead.free.fr/gilead/

Hope that helps,
-Sumit Chandel

On Wed, Feb 18, 2009 at 8:21 AM, Rafael Barrera Oro <[email protected]>wrote:

> Hello, i just wanted to make sure that i got it right...
>
> If i have an existing project, which has its own dependencies, and i want
> to use it on my GWT application, on the client side, ¿i have to package the
> mentioned project and then get the source packages for all its dependencies?
> (considering they are all 5.0 compatible)
>
> The problem is i have an ORM generator which generates a set of classes
> which i would like to use on the client side, but they are a little more
> than POJOS, thats why they have their own dependencies and i have not been
> able to use them so far (on the client side, of course).
>
> Thank you all in advance
>
> Cheers!
>
> Rafael
>
> >
>

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

Reply via email to