beautypg.com

Choosing what to include in your model, Choosing what to include in your model 68 – Apple WebObjects 3.5 User Manual

Page 68

background image

Chapter 3

Creating a WebObjects Database Application

68

3. Complete the login panel.

Specify the connection information you provided when you created and
populated the Movies database. Post-Installation Instructions provides more
information.

4. Click OK.

When you use the wizard to create a model file, the wizard uses the adaptor you
specify to connect to your database. With the information you specified in
the adaptor’s login panel, the adaptor logs in, reads the database’s schema
information, and creates a model. The wizard uses your answers to the questions
in the next several pages to configure that model.

Choosing What to Include in Your Model

In this next wizard page, you can specify the degree to which the wizard
configures your model.

The basic model the wizard creates contains entities, attributes, and relationships.
An entity is the part of the database-to-object mapping that associates a database
table with an enterprise object class. For example, the Movie entity maps rows
from the MOVIE table to Movie objects. Similarly, an attribute associates a
database column with an instance variable. For example, the

title

attribute in the

Movie entity maps the TITLE column of the MOVIE table to the

title

instance

variable of Movie objects.