as i mentioned at previous post, we can use custom view attribute types to store complex data types. in this short post, i will show how to maintain passivation/activation mechanism for these custom attribute types.

if our custom domain type class implements Serializable, we have little to do for supporting passivation. same as following screenshot, we can set Value Serializer Class parameter to oracle.jbo.domain.DefaultValueSerializer.

we can also implement our own value serializer class. in this case, we should implement oracle.jbo.domain.ValueSerializer class and getXMLContentNode(Document xmlDoc, java.lang.Object attrValue)getXMLContentValue(Node attrNode) methods.