HomeEMF HibernateEMF JDO/JPOXWeb App GenerationServices
 

Tutorial: Library

This tutorial describes how to store and retrieve a number of simple EMF objects. This tutorial is based on the well known library example used in EMF tutorials:

  • Click here for the EMF library example using a XML Schema
  • Click here for the EMF library example using a Rose model

This tutorial assumes that you have done one of these two tutorials. The image below shows the projects which should be present in the workspace. In addition the JPOX Plugin and EMF - JPOX plugin should be installed, see the installation guide.

Enabling JPOX support for the library project

This tutorial will guide you through the following steps:

  1. Generate OR Mapping file and enhance classes
  2. Add the runtime jars to the library model project
  3. Setup initialization code and create and store a Library with a number of Books and a Writer
  4. JDO query to read the library and its content
  5. Use an EMF resource to read the library and its content

Please click here to start with the tutorial.