daominhtan / gwt-spring-hibernate-reference

Automatically exported from code.google.com/p/gwt-spring-hibernate-reference
0 stars 0 forks source link

A first reference #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is not exacttly an issue, but a first reference project.

I hope this helps. It is pretty ugly, but I think the essence is good.

I don't like GwtSpringController, so take a look at
org.gwtspringhibernate.reference.rlogman.spring.GwtServiceExporter, which
is based on the idea of jelmer.jteam.nl/?p=5

The GWT app. is based on KitchenSink.

I have 2 source code directories: one for client code and another for
server code.

Regards,

Rodrigo López-Guzmán.

Original issue reported on code.google.com by rlog...@gmail.com on 31 Aug 2006 at 9:00

Attachments:

GoogleCodeExporter commented 8 years ago
Hi.
What about file GWT_Spring_Hibernate_Sample.jsp? I can't find it in project but 
it
present in  web.xml.

Original comment by lexius.j...@gmail.com on 21 Sep 2006 at 8:56

GoogleCodeExporter commented 8 years ago
Hello Rodrigo,
I was studying your example. First of all thank you for publishing.
I have a problem and it seems that you also had it. You have the class 
Classification
in the server side with Annotations (for Hibernate) and you need the same class 
in
the client side (without Annotations because you need java 1.4). It seems that 
we
need to duplicate the code? Am I right?. This would be a serious problem. There 
is no
other way to solve it?
Regards,
Pablo Zanetti.

Original comment by pablozan...@gmail.com on 12 Sep 2007 at 9:05

GoogleCodeExporter commented 8 years ago
That was a problem that we defenetely had in GWT versions previous to 1.4. In 
short
words, frameworks such as Hibernate work with java.io.Serializable objects, 
while GWT
worked with IsSerializable interface.

If you analyze my classes, the ones in server implement Serializable and the 
ones in
client implement IsSerializable.

With GWT 1.4, IsSerializable and Serializable are equivalent, but I have to 
tell you
that I have tried to remove the repetition of beans, working with only one 
definition
(I removed Hibernate annotations and instead used hbm.xml files) and I had no 
success.

I'm working in a big project with "tons" of classes, so I didn't have enough 
time to
do exahustive tests. The only test that I did, failed.

It would be good if you try to do this test by yourself and tell us about your 
results.

Regards,

Rodrigo.

PS: Pablo, do you speak Spanish?

Original comment by rlog...@gmail.com on 12 Sep 2007 at 9:21