MDA Distilled: Principles of Model-Driven Architecture
by Stephen J. Mellor, Kendall Scott, Axel Uhl, Dirk Weise
Mapping Functions
A mapping function is a collection of rules or algorithms that defines how a particular mapping works. A mapping is the application or execution of a mapping function in order to transform one model to another.
Mapping functions are defined against metamodels, but they operate on models. One of the rules stated above was, “Turn every class with at least one persistent attribute into an entity bean.” That statement relies not on the specifics of a model, but on related types of model elements, where a type denotes a group of model elements with common properties—which is exactly what the metamodel does for us. This explains why we felt compelled to discuss it in the previous chapter. (That, and we really get into this “meta” ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access