I am writing a fairly large web app using GWT in Eclipse.    My background
is as a c++ desktop developer, so while I have used java before, sometimes I
stumble on easy stuff.

Anyway, I am currently attempting to implement a database to store data from
my webapp.   I am far from an expert in SQL, but I have done some desktop
programming of SQL before, so I feel comfortable enough doing SELECTs and
whatnot.   (Most recently I did some development using the iPhone Sqlite
stuff).

Can someone point me to a good tutorial or something that gives an example
of storing simple user data in a database from a GWT app?  I found a servlet
based java/mysql example, so I am concentrating on classes like datasource
right now.   I can only assume the SQL stuff needs to be contained on the
server side of a GWT app anyway, so I was going to start there.  But I had
questions like:

- what is the process for connecting to a database in hosted mode?     Is
just left to me to get something like MySql installed locally, and then
follow instructions like listed here (
http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html) in
order to connect?

- when I do deploy to a live webserver, is it just a matter of switching the
database config (username/password, database name etc)? (as long as I have
everything setup in mysql on my live webserver obviously)

- how does 'Hibernate' fit into all this?   I read about it, and see it
mentioned everywhere.    It looks like a library for persisting my java
objects in the database, rather than pulling information out of my objects
and storing the data only?  Is that accurate?    If so, I could write my
persistance layer in such a way that I could start by storing the data raw
(Strings, longs whatever), then later as my app becomes more complex, I
could implement Hibernate to start storing my model objects directly?

Thanks in advance!

-pj

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