If you want to keep your annotations on your entity classes and your
entity classes inside client packages you have to include Hibernate in
your classpath. The GWT compiler needs to know about them.

You can either strip the annotations and map your entities with an
hbm.xml or you make an annotation-less copy of each entity class and
use them as data transfer object (DTOs).

May I ask why it is a problem to include Hibernate in your classpath
when compiling your GWT app? These annotations do not appear in the
JavaScript.



On Sep 4, 10:06 pm, Alline <[EMAIL PROTECTED]> wrote:
> Hi,
> I am using GWT and I had to put my Model package inside the GWT client
> package.
> The problem is that I am using Hibernate Annotations to persist my
> data, and the annotations stays inside the Model Classes.
> So, I am forced to import Hibernate libraries inside to my client
> package.
> I didn't like that...
>
> Do you have a suggestion for a way that I can work together with
> hibernate annotations, MVC and GWT ?
--~--~---------~--~----~------------~-------~--~----~
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