The transformation
authoring framework enables you to incrementally add mapping rules
and generate implementations for the mapping rules. For each mapping declaration in the mapping model,
the transformation authoring framework generates a Java class
with the name nTransform, where n represents
the name of the mapping declaration. Collectively, these Java classes compose the transformation code. Before you begin
In addition
to generating the implementation code for the transformation, the
transformation authoring framework also generates code to register
the transformation with the Transformation Service.
You
must have a .mapping file open, and the file must contain at least
one map. You must save your changes to the mapping model; otherwise,
the option to generate transformation code is not available.
About this task
To generate source code for a model-to-model
transformation, right-click the Mapping Root section
in the editor area; then click Generate transformation
source code. The transformation files are created in the
transforms folder of the transformation project.Note: You can also generate transformation source
code by right-clicking the .mapping file in a mapping project, and
clicking .