After you create your data model, you can create a Data Object interface using the New Business Entity wizard.

Follow these steps to create a Data Object interface using the New Business Entity wizard:

  1. Open Progress Developer Studio for OpenEdge.
  2. Right-click the ABL Web App project and select New > Business Entity. The New Business Entity wizard appears.
  3. In the Create a Business Entity class page:
    1. Specify the Package root of the Business Entity class.
    2. Specify the Package.
    3. Enter the Business Entity name.
    4. If you want to use a temp-table to create a new Business Entity, clear the contents of the Inherits field.
    5. Click Next.
  4. In the Select a schema file page, select the operation or the set of operations that must be created.
  5. Select Write dataset before image if you want the before-image data to be written to a file. Note: The Write dataset before image option is selected by default if you select the CRUD and Submit options. The before-image data is required to perform the Submit operation.
  6. If you want to create the Data Object interface for a database table, select the Select database table option and from the drop-down lists, select a Connection and a table.
  7. If you want to create the Data Object interface for a schema file, select the Select schema from a file option and then browse to select the schema file. This populates the Schema box. Select the required schema.
  8. After you select the schema, in the Using section:
  9. Select Include file if the selected schema file is an include (.i) file. Note: The schema file is included in the Business Entity class. No annotations are generated for the temp-table defined in the selected file.
  10. Select Schema definition to copy the selected schema definition to a Business Entity class file. This option is enabled if the selected schema is a procedure (.p or .w), a class (.cls), or an include (.i) file.
  11. Note: If the schema definition option is selected and the selected file is an include file, the wizard adds the temp-table schema definition from the selected file to the new Business Entity class file along with annotations if the include file does not already have annotations. In such a case, the annotations are generated based on the temp-table definition. If the include file already has annotations, no other annotations are added.
  12. Select Class hierarchy if you want to select the schema definition from the class hierarchy.
  13. Ensure that Expose as a Data Object service is selected.
  14. Optionally, modify the Resource URI. By default, the resource name is displayed with a “/” prefix.
  15. Click Finish. A class file with the required methods and annotations, that is, a Data Object interface, is created.