Title: Remote Object Persistence Tutorial Client Project

Create a Client Project

Creation of a new Eclipse project has been discussed in some details here, so we will omit the screenshots for the common parts.

Client Class Generation

Client classes are a lightweight version of server-side DataObjects. They are generated using a separate template. Let's lace them in a new client project.

Now go back to Eclipse, right click on "cayenne-tutorial-client" project and select "Refresh" - you should see a pair of classes generated for each mapped entity. Note that you should not modify the classes whose names start with "_" (underscore), as they will be replaced on subsequent generator runs. Instead all custom logic should be placed in their subclasses located in "cayenne.tutorial" package - those will never be overwritten by the class generator.


Next Step: Remote Object Persistence Tutorial WebService