There are two basic ways of storing object attributes directly in a database table:
In TopLink, direct mappings define how a persistent object refers to objects without descriptors, such as the JDK classes and primitives.
You can create the following direct mappings in TopLink:
If the application's objects contain attributes that cannot be represented as direct-to-field, type conversion, or object-type mappings, then the application must provide transformation routines for saving the attributes.
If a direct-to-field mapping cannot be used to perform the desired conversion, try type conversion and object type mappings before attempting to define a custom transformation mapping.
Copyright © 1997, 2004, Oracle. All rights reserved.