1.10. Custom Mappings

The files for this sample are located in the samples/ormapping directory of the Kodo installation. This sample demonstrates custom field and class mappings.

The CustomFields class is a persistence-capable class that uses each of the custom field mappings above. The StoredProc class is a persistence-capable class that uses the StoredProcClassMapping. The CustomFieldsMain and StoredProcMain classes are simple driver programs for each of these types.

Note that creating custom class mappings requires a special license. Contact sales@solarmetric.com for details. Custom field mappings do not require a special license.

Also, make sure to browse the "externalization" sample directory. Kodo includes an externalization feature that can be used to persist many unsupported field types without having to create a custom field mapping.