HomeEMF HibernateEMF JDO/JPOXWeb App GenerationServices
 

Run the Library Editor

To run the Library Editor go to step 4 of the EMF Library tutorials (Run the generated Editor). For the EMF Library tutorial see: (based on Rose, based on Xml Schema).

After adding a Library and a Writer (JRR Tolkien) and a Book you need to save the resource. The database mylibrary now contains a Library, a Book and a Writer.

Note that the model constraints are checked when saving EMF objects. Validation errors (e.g. non-nullable fields are not set) are made visible in the Eclipse Error Log view (see menu Window > Show View > Error Log). When one of the EMF objects is invalid then the complete save action is rolled back.

You can try the following editor actions:

  • Create Writers and Books, link them
  • Link Writer to multiple Books
  • Copy and paste of one or multiple Writers and Books
  • Delete of a Book if it has no Writer
  • Delete of a Writer if it has no Books

Cut and paste will not work directly, see here for more information and a solution.