Set an EMF genmodel to generate 2.2 compatible objects
WebSphere Commerce runs on EMF 2.2, while Rational Application Developer runs on EMF 2.4. A new EMF object that is created in Rational Application Developer contains the EMF 2.4 default values. We can setup WebSphere Commerce Developer to generate EMF models that are compatible with WebSphere Commerce. If the pattern is run, these settings are enabled by default. However, if you create a new custom EMF model, these settings are not enabled by default.
Procedure
- Start WebSphere Commerce Developer.
- Open the genmodel file that we are working on for our project.
- Click the Properties tab within WebSphere Commerce Developer to view the properties for the genmodel file.
Note: If the Properties tab is missing, right-click the genmodel file, and select Show In > Properties.
- Ensure that the following values are set. Under the All heading, set these properties:
Properties and Values for the genmodel file.
Property Value Bundle Manifest False Compliance Level 1.4 Copyright Fields True Runtime Version 2.2 Under the Model heading, set these properties:
- Suppress EMF Metadata
- False
- Suppress EMF Model Tags
- True
- Save our changes and close the file.