With TopLink mappings, you persist objects by storing (i.e., mapping) information about them in a relational database. There are three components to a mapping:
Although TopLink supports more complex mappings, most TopLink classes map to a single database table that defines the type of information available in the class. Each object instantiated from a given class maps to a single row comprising the object's attributes, plus an identifier (the primary key) that uniquely identifies the object.
Figure 5-1 How Classes and Objects Map to a Database Table
Figure 5-1 illustrates the simplest case in which:
In addition to this simple example, TopLink allows you create complex mappings, such as transforming a class or object into database table or row.
Copyright © 1997, 2004, Oracle. All rights reserved.