Skip Headers

# Using Java

Previous

Next

For mappings not supported in TopLink Workbench, use the `independentRelationship` (default), `privateOwnedRelationship`, and `setIsPrivateOwned` methods.

Example: Configuring Access Method in Java shows how to use these methods with a class that has a privately owned attribute, `phones`, in a mapping.

Configuring Access Method in Java

    // Map the phones attribute
    phonesMapping.setAttributeName("phones");

    // Specify as privately owned
    phonesMapping.privateOwnedRelationship();