Skip Headers

# Using Java

Previous

Next

Use `oracle.toplink.mappings.ForeignReferenceMapping` method `setReferenceClass` to specify the target class of the attribute being mapped.

Example: Configuring Reference Class in Java shows how to use this method with a `ReferenceMapping` that maps the `manager` attribute of the `Employee` class.

Configuring Reference Class in Java

    ReferenceMapping managerMapping = new new ReferenceMapping();
    managerMapping.setReferenceClass("Employee.class");
    managerMapping.setAttributeName("manager");