Tutorials > Management Center > Create the Project BOD service module

< Previous | Next >


Implement the persistence layer for the WebSphere Commerce BOD programming model

The BOD programming model provides a Data Service Layer that is independent of the physical schema.

Each service module, for example, Catalog and Marketing, has an independent data service implementation that contains the following assets:

WebSphere Commerce provides a tool called the Data Service Layer Wizard that automatically generates the Service Data Objects and object-relational metadata mentioned previously. The wizard takes a list of the database tables as input and generates the object-relational mapping information and the static physical SDOs representing these tables.


Procedure

  1. If the development environment uses an Apache Derby database, ensure that it does not have an existing connection. For example, ensure that the WebSphere Commerce server is stopped.

  2. Click File > New > Other > WebSphere Commerce > Data Service Layer .

  3. Click Next.

  4. Select the Work with a custom service module radio button, then click Next.

  5. Select the service module and and click Next:

    • Service module: Select com.mycompany.commerce.project

      If you do not see this service module, copy the com.mycompany.commerce.project from WCDE_INSTALL\workspace\Project-Server\sampleConfig\xml\config\ to WCDE_INSTALL\xml\config.

    • Extension class prefix: Project

    • Extension Java package name: com.mycompany.commerce.project

  6. Select all custom table names in the wizard:

    • XPRJCATREL

    • XPRJCOL

    • XPRJCOLDES

    • XPRJDES

    • XPRJINS

    • XPRJINSDES

    • XPRJMTR

    • XPRJMTRCATREL

    • XPRJMTRDES

    • XPRJPRJCOLREL

    • XPROJECT

    Only custom tables are selected. The Project service module cannot access any other WebSphere Commerce table. Other service modules are used to access additional data. For example, the Catalog service is used to include Catalog Entry data in the Project service.

  7. Click Next.

  8. If the WebSphere Commerce Developer environment uses an Oracle database, specify the data types manually, as the Oracle NUMBER data type can represent different number types. It can represent number types including integer, long, float, and double.

  9. Click Finish.

Review the assets created by the Data Service Layer wizard. The following assets were generated:

< Previous | Next >


+

Search Tips   |   Advanced Search