Oracle® Application Server TopLink Mapping Workbench User's Guide
10g Release 2 (10.1.2) Part No. B15900-01 |
|
Previous |
Next |
In this advanced tutorial, you will improve the ACME Employment Management System (built in the introductory tutorial) to manage additional information. You will update the introductory application with new project information and reuse existing components from previous applications.
You will also learn how to:
Work with self-relationships
Create the following advanced mapping types: object type mappings, aggregate object mappings, direct collection mappings, and many-to-many mappings
Implement indirection and value holders
Use inheritance
Create transformations
Work with the Automap tool
Use multiple tables for one class
Create and generate code
This advanced tutorial adds the ability to track employees' current projects, managers, and contract period. You will reuse components from the introductory tutorial.
In addition to the Employee
, Address
, and PhoneNumber
classes from the introductory tutorial (see "Overview"), the advanced tutorial uses these classes:
EmploymentPeriod
– Defines the contract term for contractors and the hire date for ACME employees. Each Employee
class has an EmploymentPeriod
.
ResponsibilityList
– Each Employee
has a collection of text that describes the employee's job.
BaseProject
– Maintains information about a particular project and the people working on it. The Project
class contains two subclasses: LargeProject
and SmallProject
. Each Employee
can be involved in more than one project.
TeamLeader
– Each Project
can have a team leader (the Employee
responsible for the project.
Manager
– Each Employee
may have a manager and a collection of managed employees.
Figure B-1 illustrates the object model for the advanced tutorial.