Hi henning,

You are probably getting compile errors because you are including
Hibernate classes such as persistence class/annotations etc under the
client package.

GWT has a definitive client/server hierarchy and the client side of a
GWT application is restricted to a subset of the Java SDK and for good
reason. As you client side is compiled into javascript the GWT
compiler can only handle certain object types.

With server side code you are free to use whatever technology you
like.

For integrating GWT and Hibernate you have a few options - firstly
maintain your current server side code and use DTO objects for passing
objects from client to server. Alternatively you can use Gilead
(formerly Hibernate4Gwt) for more details on Gilead see:
http://gilead.sourceforge.net

Hope this goes somewhat to helping you.

Eggsy

On Jun 24, 1:15 pm, HenningS <[email protected]> wrote:
> Hi there,
>
> i'd like to seperate my GWT application in two Eclipse projects:
> Database (persistence) and Application application). To prevent
> compiler errors (cannot be resolved as a type...)  in Eclipse the
> persistence project is added to the classpath of application.
> Also the project is added into the "projectname.gwt.xml" like:
> "<inherits name="en.mycompany.myproject.persistence"/>"
> This way it is possible to import projects to GWT-projects in respect
> to the classloader of GWT.
>
> The problems begin when adding / using hibernate jars to the external
> project: During execution the AppEngine Server complains that it is
> missing source code for "org.hibernate.SessionFactory" and so on...
>
> Quick solution is to integrate the presistance implementation into the
> main implementation - do not like this way.
>
> Has anyone faced the problems described above?
>
> Deeply grateful for any help,
>
> henning
--~--~---------~--~----~------------~-------~--~----~
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