Castor - JavaBeans -GWT

18 views
Skip to first unread message

jm

unread,
Aug 30, 2006, 8:25:08 AM8/30/06
to Google Web Toolkit
Hello,

we use CASTOR to generate JavaBeans from XSD in or application.
I 'd to use these JavaBeans in GWT so i have made a script that suppose
to conform generated JavaBeans with GWT.
i.e. - it remove some bad imports ...
- each JavaBeans implements IsSerilisable etc ...

but there is still a problem some JavaBeans use
- java.math.bigdecimal
- java.util.hastable
- java.util.Enumeration.

so when i try to build i cannot use these objects in GWT.

do you plan to integrate these class in GWT soon ?
is there a way to bypass this issue ?
is it possible to extend GWT to support these types ?

jm

Dave

unread,
Aug 30, 2006, 8:49:02 AM8/30/06
to Google Web Toolkit
Since the code in these objects are generated you might be able to
tweak the Castor generation logic to use more GWT compatables. As an
alternative you could explore JAXB.

Another thing to watch out for is the way some value objects implement
equals and hashcode since GWT does not support the getClass() method.

You might also write a code generator to build parallel value objects
that mirror the Castor objects and use a tool like Dozer to copy the
data.

Dave

Reply all
Reply to author
Forward
0 new messages