Creating Class Hierarchy by Factoring Attributes

The and the can be used as hints for creating intermediate classes above the . Inspection of these views will provide ways for factoring attributes up higher in the class hierarchy. The term factoring attributes up refers to moving the definition of the attributes up as high as possible in the class hierarchy. Looking at the multi-type views will likely show you which attributes can be factored up and what name you should assign to the new intermediate classes above the leaf nodes. The name is usually the same name as the multi-type view that you are using.

To create the intermediate classes above the leaf classes, simply add the Teacher and Support Classes above the and factor up the common attribute based on the multi-type view. The result is shown below.

Creating class hierarchy by factoring attributes

Next: . Also see the related content below.

Current Article Context

Home » Articles » Object-Relational Mapping Articles » Using Existing Relational Schema » Multi-Type Views » Creating Class Hierarchy by Factoring Attributes

Related Articles

The Savvy Manager's Guide

is also the author of a book that explains Web Services, service-oriented architecture, and Cloud Computing in an easy-to-understand, non-technical manner.

Web Services, Service-Oriented Architectures, and Cloud Computing: The Savvy Manager's Guide

by with David Dick

This is a guide for the savvy manager who wants to capitalize on the wave of change that is occurring with Web Services, service-oriented architecture, and—more recently—Cloud Computing. The changes wrought by these technologies will require both a basic grasp of the technologies and an effective way to deal with how these changes will affect the people who build and use the systems in our organizations. This book covers both issues. Managers at all levels of all organizations must be aware of both the changes that we are now seeing and ways to deal with issues created by those changes.