Using the New Business entity wizard
- Last Updated: March 30, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
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:
- Open Progress Developer Studio for OpenEdge.
- Right-click the ABL Web App project and select New > Business Entity. The New Business Entity wizard appears.
- In the Create a Business Entity class page:
- Specify the Package root of the Business Entity class.
- Specify the Package.
- Enter the Business Entity name.
- If you want to use a temp-table to create a new Business Entity, clear the contents of the Inherits field.
- Click Next.
- In the Select a schema file page, select the operation or the set of operations that must be created.
- 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.
- 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.
- 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.
- After you select the schema, in the Using section:
- 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.
- 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.
- 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.
- Select Class hierarchy if you want to select the schema definition from the class hierarchy.
- Ensure that Expose as a Data Object service is selected.
- Optionally, modify the Resource URI. By default, the resource name is displayed with a “/” prefix.
- Click Finish. A class file with the required methods and annotations, that is, a Data Object interface, is created.