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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to