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.
This tutorial will guide you through the following steps:
- Generate OR Mapping file and enhance classes
- Add the runtime jars to the library model project
- Setup initialization code and create and store a Library with a number of Books and a Writer
- JDO query to read the library and its content
- Use an EMF resource to read the library and its content
Please click here to start with the tutorial.