1.7. Horizontal Mappings

This sample demonstrates how to use horizontal mappings to implement the common pattern of individual tables that track the creation data and last modification date. This is accomplished through the LastModified superclass that contains a lastModificationDate and creationDate Date field that is automatically updated from the jdoPreStore method.

The package.mapping file specifies that the LastModified class use a horizontal mapping, which means that each of the fields will then be declared in the subclasses: Widget, WidgetOrder, WidgetOrderItem.