Entity Modeler and java.io.Serialization
Entity Modeler and java.io.Serialization
- Subject: Entity Modeler and java.io.Serialization
- From: Riccardo De Menna <email@hidden>
- Date: Thu, 11 Aug 2011 12:53:24 +0200
Hi there,
Is there a way to force the db adaptor to serialize and deserialize objects using java.io.Serializable?
To put it in other words, is there an easy way to serialize simple java objects without the need to write customized code?
For example, I was tweaking some of my prototypes and I just realized that it would be very useful to have an inetAddress prototype for all ip/host addresses. The class for it is java.net.InetAddress and it obviously already implements Serializable. Can I leverage that in entity modeler to save and restore those objects to blobs without having to write a serialization utility?
Also, why is the "class" field always disabled in entity modeler when the "value class" is visible? If there is no automatic way to deserializae using Serializable, then I was thinking of writing a custom serialization class.
I though I could use the "class" field to point to my deserialization class, the "value class" field to tell the system what to expect as a final output, and the "value type" field to help my class decide "how" to deserialize. But the class field is always grayed out and disabled and I can't find any documentation on how I would have to write my code.
Comments appreciated…
Riccardo _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden