|
The
problem Hibernate replaces some basic Java types with various subclassed implementation :
Nevertheless, Javascript serialization of these classes fails, since they do not belong to the JRE emulation supported by GWT. The easiest way to solve this issue if to convert back the Hibernate types to the JRE ones. Dozer and BeanLib do it well (hibernate4gwt too, since it uses BeanLib :) )... except for java.sql.Timestamp ! Timestamp case As specified in the associated JavaDoc : "Note: This type is a composite of a Due
to the differences between the Hopefully, since release 0.5, hibernate4gwt supports native java.sql.Timestamp both for clone and merge and adds JSNI port of this class (and java.sql.Date too), so usage of Timestamp is not an issue anymore. |
Copyright 2007. All Rights Reserved
|