Open GoogleCodeExporter opened 9 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
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
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
Original issue reported on code.google.com by
rlog...@gmail.com
on 31 Aug 2006 at 9:00Attachments: