Show Table of Contents
2.28. Configuring the mappingModel
- To add the D93A mapping model ZIP set to your application classpath, set the following dependency to your application's POM file:
<!-- The mapping model sip set for the D93A directory... --> <dependency> <groupId>org.milyn.edi.unedifact</groupId> <artifactId>d93a-mapping</artifactId> <version>v1.4</version> </dependency> - Configure Smooks to use this ZIP set by adding the
unedifact:readerconfiguration to your Smooks configuration as shown below:<unedifact:reader mappingModel="urn:org.milyn.edi.unedifact:d93a-mapping:v1.4" />
Note how you configure the reader using a URN derived from the Maven artifac's dependency information. - You can also add multiple mapping model ZIP sets to your application's classpath. To do so, add all of them to your
unedifact:readerconfiguration by comma-separating the URNs. - Pre-generated Java binding model sets are provided with the tool (there is one per mapping model ZIP set). Use these to process UN/EDIFACT interchanges using a very simple, generated factory class.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.