Serializable Hibernate data object for GWT RPC -


I have a simple POJO map in the table using Hibernate. I work fine which works.

Implementation of the public category patient serializable {Private Int. Patient; Private string first name; Personal string last name; Private set & lt; Prescription & gt; PatientPrescriptions; Public problem () {} ...}

My problem is that I want to serial the object so that I can wire it for my GW-RPC calls. If my ASCIN service returns this object then I get an error:

com.google.gwt.user.client.rpc.SerializationException: type 'org.hibernate.collection. PersistentSet 'was not included in the set of types which can be sorted by this serialization policy or its class object can not be loaded. For security purposes, this type will not be serialized.

I think this is due to the fact that it can not be triggered by set because it is an interface, therefore there is no serial power. On the other hand, to work in hibernation requires a collection interface (set / map), so that I can no longer send the mapped object with hibernate? Is there a few "easy" way to sort the set?

Thank you. The problem is that GWT is not getting the source code of annotation and classes used. GWT needs that source code because it has to compile its object in JS.

I want to serial the object so that I can wire it to my GW-RPC calls. / P>

You can use to do this (formerly known as Hibernate 4GWT)

I think it is due to this fact Is that it can not be serialized because it is an interface, so there is no syringe. On the other hand, to work in hibernation requires a collection interface (set / map), so that I can no longer send the mapped object with hibernate? Is there a few "easy" way to sort the set?

The problem is not with set , GWT can very well archive the archive through its GWT-RPC, however during transmission, Want to use the implementation such as HashSet allows it to be optimized for that particular implementation instead of a normal interface.


Comments