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” ...

Get MDA Distilled: Principles of Model-Driven Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.