Page Edited :
CAYDOC :
Remote Object Persistence Customization
Remote Object Persistence Customization has been edited by Andrus Adamchik (Sep 01, 2007). Content:Working with Custom Property TypesIn addition to configuring Extended Types as described in Cayenne Guide, users must pay attention to serialization of the custom property types. A custom class must be serializable so that it can be passed between the client and the server. Cayenne uses a library called Hessian to perform the serialization of objects. Mostly it will just work with custom extended types, but there are some important requirements:
Instead of all the above you may be able to register an additional SerializerFactory to handle your extended type by using com.caucho.hessian.io.SerializerFactory.addFactory((AbstractSerializerFactory factory). This will give you complete control over the process. |
Unsubscribe or edit your notifications preferences