Hello.
I used GWT 1.6.4 and custom field serializers for transmitting
entities retrieved with help of hibernate. It was done for handling
Hibernate collections. For example:
public class Category_CustomFieldSerializer {
public static void serialize(SerializationStreamWriter writer,
Category instance) throws SerializationException {
writer.writeString(instance.getName());
writer.writeObject(instance.getOperation());
writer.writeObject(new LinkedList<CategoryValue>
(instance.getCategoryValues()));
}
public static void deserialize(SerializationStreamReader reader,
Category instance) throws SerializationException {
instance.setName(reader.readString());
instance.setOperation((OperationType) reader.readObject());
instance.setCategoryValues((List<CategoryValue>)
reader.readObject());
}
}
It was perfectly working. Recently I decided to try GWT 2.0. And
suddenly I started to receive
"com.google.gwt.user.client.rpc.SerializationException: Type
'org.hibernate.collection.PersistentBag'...". I tried to print debug
info from custom serializer and seems it never called.
Does support for custom serializers ended in GWT 2.0? Is there some
mechanism to solve this problem, except separate data transfer
objects?
Best regards, Evgeniy.
--
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.