Working with Reference Mappings

In an object-relational data-model, structures reference each other through refs-not through foreign keys (as in a traditional data-model). Refs are based on the target structure's ObjectID.

TopLink supports refs through the ReferenceMapping class. They represent an object reference in Java, similar to a OneToOneMapping. However, the reference mapping does not require foreign key information.

 

Copyright © 1997, 2004, Oracle. All rights reserved.