2.2. Creating the Data Model

Let’s create a Contract entity class.

  1. In the Data Model section of the CUBA project tree click New > Entity. The New CUBA Entity dialog window will appear.

  2. Enter the name of the entity class – Contract – in the Entity name field and click OK button. The Entity Designer page will be displayed in the workspace.

  3. Using the Entity Designer add attributes:

    • number of the type String

    • date of the type Date

    • state of the type String

Contract entity creation is now complete.