Hi Dessorry, In terms of where to put your Hibernate code, you're most likely to get useful replies and information on the Hibernate site and discussion forum:
Hibernate homepage: http://www.hibernate.org/ About using your Hibernate objects in GWT - as you will discover by searching threads in this forum about the subject, you normally can't use Hibernate objects directly in GWT RPC because of the types used in Hibernate that aren't supported by GWT's emulated JRE. However, you can always create data transfer objects that mirror your Hibernate objects. These are regular POJOs that obey the constraints of the emulated JRE. In addition to this and other techniques you might find in a group search, you can also use the Gilead library which is designed for the purpose of integrating Hibernate with GWT. Chances are that since you're just getting started out with GWT, there are probably more than a few terms in the preceding paragraph that might have you scratching your head. Check out the links below for more info and feel free to post back if you have an additional questions. GWT emulated JRE: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation Gilead project: http://noon.gilead.free.fr/gilead/ Hope that helps, -Sumit Chandel On Fri, Jan 9, 2009 at 3:15 AM, Martin <martin.konz...@gmail.com> wrote: > > if you want to take a look at a toplink JPA based solution, check out > http://toools.org > > cheers > > On Dec 3 2008, 11:13 am, Dessorry <niccolo.gianner...@gmail.com> > wrote: > > Hi, > > I'm trying to build my first GWT application; i would read data from a > > database and display it on a simple gwt page. > > I create in Eclipse my Web Dynamic Project. > > I put my POJO class in mypackage.server and the class with entrypoint > > in mypackage.client. > > I create a new GWT Remote Service with Eclipse. > > Now where must i put the hibernate code to access database? > > p.s.in mypackage.server there are hibernate.cfg.xml and pojo.hbm.xml > > > > thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---