Show TOC

Procedure documentationCreating the Project and Employee Entities Locate this document in the navigation structure

 

Creating the Project and Employee Entities

Procedure

  1. From the context menu of the app_ejb, choose   New   Package  .

  2. Enter the following package name com.sap.nwce.ra.sedm.ejb.entity and choose Finish.

  3. From the new package context menu, choose   New   JPA Entity  , enter class name Employee, and choose Next.

  4. To add the entity fields (in fact the entity database columns) choose repeatedly Add and use the table listing the necessary entity fields for the Employee entity.

    Type

    Name

    int

    employeeId

    java.lang.String

    email

    int

    salary

    java.lang.String

    salutation

    int

    version

    java.lang.String

    lastName

    java.lang.String

    login

    java.lang.String

    firstName

  5. Choose Finish to complete the entity creation.

  6. Open the Employee class, and from the secondary mouse button select   Source   Organize Imports  .

  7. Save the changes.

  8. Using the above steps from 3 to 7 (and the table below) create the class name Project.

    Type

    Name

    int

    projectId

    int

    status

    java.lang.String

    description

    java.util.Date

    startDate

    java.lang.String

    title

    int

    version