Regenerating the SDOs for the TutorialStore noun

In this step, you generate the data objects that are required for implementing the logical data model of your TutorialStore noun, which is defined in the TutorialStore.xsd file.

About this task

You can now update the data objects that are required for implementing the logical data model of your Process service support for the TutorialStore noun. In Java, the data objects that represent the TutorialStore noun are service data objects (SDOs) and are stored in the TutorialStore DataObjects project. These data objects, which are generated directly from the TutorialStore noun, use the Eclipse Modeling Framework (EMF).
Remember: You must have the Eclipse Modeling Framework (EMF) capability that is enabled in WebSphere Commerce Developer to complete this step of the tutorial.

Procedure

  1. Set up the predefined WebSphere Commerce type constructs, and update the JET-generated TutorialStore.xsd template with your own noun definition:
    1. In the Enterprise Explorer view, go to SOITutorialStore-DataObjects/xsd/OAGIS/9.0/Overlays/MyCompany/Commerce/Resources/Nouns.
    2. Open the TutorialStore.xsd file for editing.
    3. Replace the generated content with the contents of TutorialStore.xsd. The file can be found in the TutorialStore.zip file, which is downloaded from the tutorial's prerequisites section.
    4. Save and close the file.
      Note: You can ignore the validation error messages now. These errors are resolved later in the tutorial.
  2. Select the data objects to be regenerated for your TutorialStore noun:
    1. Open the SOITutorialStore-DataObjects\ecore folder.
    2. Right-click SOITutorialStore.genmodel and select Reload.
    3. Select XML Schema and click Next > Next > Add.
    4. Expand the WebServicesRouter\WebContent\component-services\ecore folder.
    5. Select Foundation.genmodel and Oagis9.genmodel.

      Selecting Foundation.genmodel, Oagis9.genmodel

    6. Click OK.
    7. In the Referenced generator models area, ensure that only the following options are selected:
      Foundation model: Oagis9 model:
      • com.ibm.commerce.foundation.common.datatypes
      • com.ibm.commerce.oagis9.datatypes.codelists
      • com.ibm.commerce.oagis9.datatypes.unqualifieddatatypes
      • com.ibm.commerce.oagis9.datatypes

      Selecting the data types

    8. Click Finish
  3. Open SOITutorialStore.genmodel.
  4. Right-click the SOITutorialStore element under the SOITutorialStore root and select Generate Model Code. This generates the SOITutorialStore-DataObjects code.

    Generate Model Code selection

  5. Verify that the SOITutorialStore-DataObjects project has no compilation errors.
    Note: It can be necessary to include the WebSphereCommerceServerExtensionsData project in the build path to resolve the compilation error.