Setting 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 created in Rational Application Developer will contain the EMF 2.4 default values. You 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

  1. Start WebSphere Commerce Developer.
  2. Open the genmodel file you are working on for your project.
  3. Open the Properties tab of the genmodel file.
  4. 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:
    Properties and Values for the genmodel file.
    Suppress EMF Metadata False
    Suppress EMF Model Tags True
  5. Save your changes and close the file.