Item Editor (use JPA)

Item Editor is a sample application of Eclipse RCP that generated by using Jalcedo JPA Entity Editor Generator.

It has basic functions of CRUD (create, read, update, delete). Item Editor edits Item model that has name and price property.

Data is preserved in the database specified with persistence.xml.

Requirements

  Eclipse 3.2 or later

Item Editor

Item View

This view displays Items as table. You can edit Items from new/edit/delete button.

Item Detail View

When new/edit button is clicked, system opens this view.

You can edit values of properties.

Class Diagram

How to use Item Editor

Installation

Install Jalcedo/examples. See also Installation.

Run Item Editor

  1. Select Window -> Show View -> Other -> JpaItemView
  2. Jpa Item View is opened.

Create an Item

  1. Click new button.
  2. Input name and price.
  3. Click OK.
  4. System creates new Item, and reflesh Item table view.

Update an Item

  1. Select Item.
  2. Click edit button.
  3. Edit name and price.
  4. Click OK.
  5. System edits the Item, and reflesh Item table view.

Delete an Item

  1. Select Item.
  2. Click delete button.
  3. System deletes the Item, and reflesh Item table view.

Attachments