As per query to Andy Jefferson:
> I also implemented the TypeConverter interface for Blob and Clob;
> but I'm not sure how DN actually uses it. Can you enlighten me?
If the user has specified to use a TypeConverter on a field
then it will select TypeConverterMapping for that field (the log should say).
This has the TypeConverter internally, and will handle creation of the
required column (for the datastore type of the converter), and automate the getObject/setObject of the XXXMapping that you would have had to write if you had written the Mapping class manually.
On a persist, the setObject is called, passing through the converter. On a
fetch the getObject is called, passing through the converter.
In DN 4.0, there is even less need to provide the XXXMapping classes, adding on TypeConverterMultiMapping so for cases like your multi-column Blob it may be possible to do it just via a (different) converter (with multiple columns).