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
- Set up the predefined WebSphere Commerce type constructs,
and update the JET-generated TutorialStore.xsd template
with your own noun definition:
- In the Enterprise Explorer view, go to SOITutorialStore-DataObjects/xsd/OAGIS/9.0/Overlays/MyCompany/Commerce/Resources/Nouns.
- Open the TutorialStore.xsd file
for editing.
- 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.
- Save and close the file.
Note: You can ignore
the validation error messages now. These errors are resolved later
in the tutorial.
- Select the data objects to be regenerated for your TutorialStore
noun:
- Open the SOITutorialStore-DataObjects\ecore folder.
- Right-click SOITutorialStore.genmodel and
select Reload.
- Select XML Schema and click .
- Expand the WebServicesRouter\WebContent\component-services\ecore folder.
- Select Foundation.genmodel and Oagis9.genmodel.
- Click OK.
- 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
|
- Click Finish
- Open SOITutorialStore.genmodel.
- Right-click the SOITutorialStore element under the SOITutorialStore
root and select Generate Model Code. This generates
the SOITutorialStore-DataObjects code.
- 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.