ObjectExtender User's Guide and Reference

Mapping framework

The mapping framework enables you to map flat data to object inheritance hierarchies. It can generate queries to retrieve appropriate data, determine the appropriate object class for data based on discriminating fields, and resolve relationships of abstract classes to existing subclasses. In addition, it implements the conversion between data and objects. This is done by mapping the data schema elements to object attributes. Object relationships can be populated from data relationships (foreign keys) as well. Object queries are converted to data store queries so that the appropriate objects can be retrieved.

Several kinds of mapping strategies are available.

Attribute mapping

Attributes of a class can be mapped to one or more columns in a table as well as across many tables.

Inheritance mapping

Class hierarchies can map to single or multiple tables. Two kinds of partitioning are supported:

Relationship mapping

Objects can be mapped as one-to-one or one-to-many relationships.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]