1.7. Horizontal Mappings
Prev | Chapter 1. Kodo Sample Code | Next

## 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`.

Prev | Up | Next
1.6. Custom Sequence Factory | Home | 1.8. Using Externalization to Persist Second Class Objects