Search Mac Reference Library
WebObjects 3.5 Developer Documentation
Table of Contents
Previous
Next
Table of Contents
Previous Section
Adding Behavior to Your Enterprise Objects
Right now, the Movies application maps all its entities to the GenericRecord class. As the preceding sections illustrate, you can go quite far in an application using just this default enterprise object class, but now you need to add some custom classes to the Movies application.
In this section, you'll learn how to:
Generate source code for a custom enterprise object class.
Provide default values in a custom enterprise object class.
You'll create custom classes for the Talent and MovieRole entities. In the Talent class, you'll write a
fullName
method that concatenates a Talent's first and last names. You'll use the method to populate MovieDetail's browser element. In the MovieRole class, you'll provide default values for newly inserted MovieRoles so they don't show up in the list of movie roles as a blank line.
Table of Contents
Next Section
Legacy
Legacy Mac OS X Reference Library
WebObjects 3.5 Developer Documentation