Hibernate annotations on client package

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Hibernate annotations on client package

Postby Alline » Thu Sep 04, 2008 9:32 am

I have a MVC application,
and I put my Model layer inside the client package to be used by the Async Calls.
The problem is that I have Hibernate Annotations on my Model Classes and GWT Designer doens't let me import the Hibernate libraries to the client package.

It was working fine on GWT only...
How can it works with GWT Designer ?
Alline
 
Posts: 3
Joined: Tue Sep 02, 2008 11:51 am

Re: Hibernate annotations on client package

Postby Eric Clayberg » Thu Sep 04, 2008 10:40 am

You need to create separate information objects and put all your Hibernate artifacts on the server side.

Have you looked at Google's GWT forum? There should be lots of information available about using GWT and Hibernate together.

This does not appear to be a GWT Designer issue.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Hibernate annotations on client package

Postby Alline » Thu Sep 04, 2008 10:54 am

My problem is not the Hibernate or GWT.
My problem is specific because GWT DESIGNER doens't let me import hibernate libraries to the client package!!!

If I put my Model Classes at the server package, or any place out of client package, GWT doesn't let me use my model in my client packages!!
So my Model Classes HAVE TO BE inside the client package.
And my Model Classes USES HIBERNATE ANNOTATIONS!!!

And again, GWT DESIGNER specifically DOENS'T let me import hibernate libraries to the client package.
GWT let me!!!

So, will be impossible to work MVC with GWT DESIGNER???
Alline
 
Posts: 3
Joined: Tue Sep 02, 2008 11:51 am

Re: Hibernate annotations on client package

Postby Eric Clayberg » Fri Sep 05, 2008 4:38 am

Give the latest build a try.

It will ignore any Java 5 annotations you have set.

Whether that will help you or not, I don't know. See the following for more on GWT and Hibernate...

http://www.dotnetguru2.org/bmarchesson/ ... &tb=1&pb=1

http://groups.google.com/group/Google-W ... 972059bb34
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests