This tutorial is an extension of a Quick Start Cayenne tutorial, showing how to deploy an existing mapping project as a Cayenne web service, and then write a command-line client to access the service. Note that in most real applications the client will be a Swing or SWT GUI application. We are showing the command line example to avoid dealing with UI details and concentrate on Cayenne API.

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

Tutorial Contents

Sections

  1. Remote Object Persistence Tutorial Setup
  2. Remote Object Persistence Tutorial Client Project
  3. Remote Object Persistence Tutorial WebService
  4. Remote Object Persistence Tutorial Client Code
  5. Remote Object Persistence Tutorial Authentication