Skip Headers

# Configuring Amendment Methods

Previous

Next

Some TopLink descriptor features cannot be configured from TopLink Workbench. To use these features, you must write a Java method to amend the descriptor after it is loaded as part of the project. This method must have the following characteristics:

- Be public static.

- Take a single parameter of type `oracle.toplink.descriptors.ClassDescriptor`.

In the implementation of this method, you can configure advanced features of the descriptor using any of the public descriptor and mapping API.

Table: Descriptor Support for Amendment Methods summarizes which descriptors support amendment methods.

Descriptor Support for Amendment Methods

Descriptor | Using TopLink Workbench | Using Java
--- | --- | ---
Relational Descriptors |  |
Object-Relational Descriptors |  |
EIS Descriptors |  |
XML Descriptors |  |

This section describes how to associate an amendment method with a descriptor.

For more information about how to implement an amendment method, see "Amendment and After-Load Methods".

To customize a session, use a session customizer class (see "Configuring Customizer Class").