Generating a data model from a package or a class model
In order to accomplish the operation, you need a Java package or a class model. If you wish to create
links, you also need a link model.
- Select the class model by right-clicking it and from the pop-up menu choose
Generate data model.
- Select which target system will be used for the data model. You must setup the target system for the project before.
- Select the project or a user-defined package that will serve as the composite
for the generated data model. Upon clicking the box, a selection will
appear.
- You can choose to create links.
Remember: a link model is required if this option is checked.
- Class (source) to table (target).
- Class (source) to domain (target).
- Field (source) to column (target).
- Click the Generate button to generate the data model.
Generated objects
A data model that contains:
- a table for each class (Interfaces are not transferred).
- an association field and a static field is not transferred as a column.
- an association is transferred on a one-to-one basis.
- inheritance are transferred as associations, the subtable will have a key dependency on the supertable.
A domain model that contains:
- a domain for each class used as a field type.
Link Objects:
- If the link option was selected, link objects are generated in the specified link model.