Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Getting Started With WebObjects


   

Creating a WebObjects
Database Application

One of the most powerful features of WebObjects is its ability to provide access to databases. To do so, it uses a framework called the Enterprise Objects Framework. This chapter introduces you to the Enterprise Objects Framework by showing you how to create a simple database application. The steps you take in creating this application demonstrate the principles you'll use in every other application you develop with the WebObjects and Enterprise Objects frameworks.

The application you'll create in this tutorial is called Movies. It makes use of a sample database, the Movies database, that contains information about movies. In this tutorial we'll use the OpenBase Lite database that comes with WebObjects. If you wish to use another database, you need to set up the Movies database as described in the Post-Installation Instructions. Also, if you aren't familiar with Project Builder and WebObjects Builder, read the first tutorials in this book, Creating a Simple WebObjects Application and Enhancing Your Application , which introduce basic concepts and procedures you should know before you go on.

In this tutorial, you will:

Along the way, you'll learn basic Enterprise Objects Framework concepts you can use to design your own database applications.

Note:  You can also develop database applications using Direct to Web, a high-level framework based on WebObjects. Direct to Web instantly generates a generic database application and allows you to modify its user interface, which makes it a useful starting point for simple projects without very specific user interface requirements. See WebObjects Tools and Techniques and Developing WebObjects Applications With Direct to Web for more information.

The Movies Application

Enterprise Objects and the Movies Database

Designing the Main Page

Examining Your Project

Refining Main.wo

Adding the MovieDetails Page

Refining Your Model

Setting Up a Master-Detail Configuration

Updating Objects in the Detail Display Group

Adding Behavior to Your Enterprise Objects


© 1999 Apple Computer, Inc. – (Last Updated 24 Aug 99)