Cayenne User Documentation
Quick Start

This chapter provides a step-by-step tutorial on writing a full database application with Cayenne. When you are done with it, you should have an understanding of the basics of object relational mapping with CayenneModeler and how to use Cayenne in standalone (command line or otherwise) and web applications. The tutorial uses the Eclipse IDE (since it is free and very common) and Derby database (since it supports embedded mode and thus requires zero setup), however it can be easily applied to any other database and/or IDE's.

Full tutorial source code in a form of Eclipse project is distributed with Cayenne (see `"src/tutorials/quick-start"` folder).

### Tutorial Contents

- Setting up the environment...

- Learning mapping basics
  - Starting mapping project...
  - Getting started with Object Relational Mapping (ORM)...
  - Creating database schema and Java classes...

- Learning Cayenne API
  - Getting started with DataContext...
  - Getting started with persistent objects...
  - Cleaning up the database on startup...
  - Selecting objects...
  - Deleting objects...

- Converting to web application...

.
Copyright ©2001-2006 Apache Software Foundation