You can't do it directly, you need to use something like http://sourceforge.net/projects/gilead/
A good reference article for GWT and Hibernate http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html Hope it helps, F On Aug 19, 5:11 am, "[email protected]" <[email protected]> wrote: > is com.bancika.client.data.User annotated with �...@entity? > > also there is no difference between using j2ee and gwt with respect to > setting up hibernate > > On Aug 15, 12:48 pm, Bancika <[email protected]> wrote: > > > > > I'm using hibernate to map my data in GWT and have some weird > > problems. Here's my setup. > > > * HSQL database > > * entity class is in client folder > > * annotated class (tried with hbm.xml file, same result) > > > the problem is that my mapped class does not get registered in the > > config for some reason. I tried adding the mapped class through > > hibernate.cfg.xml and directly into the configuration with the same > > result. > > > AnnotationConfiguration config = new > > AnnotationConfiguration(); > > > > config.addAnnotatedClass(com.bancika.client.data.User.class); > > config.configure(); > > > If I test config immediately after this, it appears that no classes > > have been registered. Also, if I try session.save(user) it throws > > Unknown entity exception. > > > Is there anything I missed in the config that should be done when > > using hibernate with gwt? I've been using it in java ee for years > > without these problems. > > > Thanks, > > Bane -- 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.
