Creating a new Java persistent entity


Use this procedure to create a new persistent entity by using the Java Persistent Entity wizard.

  1. Right-click the project in the Package Explorer and select New > Other.

  2. In the Select a Wizard dialog, select Java Persistence > Entity and click Next.

    Selecting the Java Persistence Entity Wizard

    Select a Wizard dialog, withJava Persistence > Entity selected.
  3. On the Java Class page, complete the information for the new class, and click Next.

Eclipse adds the new persistent entity to the project. Use the Persistence Properties view (for entities) to further define the entity.