Hey,

You can use GWT RPC to handle server side logic like connecting to and
interacting with a database. Be warned, if you choose to use Hibernate
as an ORM, there is a steep learning curve. Hibernate may drive you
crazy in the beginning, but once you understand all the unintuitive
nuances, it rocks. Still GWT is not immediately well suited to work
with Hibernate. Since everything on the client side of a GWT
application is compiled into JavaScript, there are serialization
problems when sending Hibernate objects to the client side. If you
want to use Hibernate, I suggest also using Gilead to solve this
problems. However, again since the client side is all compiled into
JavaScript, no matter what you do, you will not be able to invoke any
Hibernate related functionality on the client side. Remember, you can
only reference classes on the client side that are implemented in
GWT's JRE Emulation Reference:

http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html

You're in for a very long haul if you choose to use Hibernate. It's
very sophisticated, but you might want to start out with a simpler
setup such as using JSON / PHP / MySQL. Instead of using GWT RPC, just
make direct Asynchronous HTTP requests for server side PHP using GWT's
RequestBuilder object. Your PHP files will connect to and interact
with the database. PHP has numerous built in functions for interacting
with a MySQL database.

Hope that helps!
-Lyden

On Jan 19, 1:38 am, Saurav Sarkar <[email protected]> wrote:
> Hi All,
>
> I am new to GWT.I installed the google plug-in for Eclipse and also
> the Window builder.
>
> Now i want my application to connect to Database.Is there any GWT form
> widget kind of thing which will automatically take care of my form
> submissions to the database.Is something available in the Window
> Builder  also ?
>
> Or else what is the best practice being used in GWT code while
> connecting to DB ?..I even had a look at the GWT-Hibernate libraries.
>
> Appreciate your response.
>
> Thanks and Regards,
> Saurav

-- 
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