Skip Headers

# Generating Java Code for Descriptors

Previous

Next

Typically, you capture descriptor configuration in the `project.xml` file and the TopLink runtime reads this information, and then creates and configures all necessary descriptor objects.

Alternatively, for relational projects only, you can export a TopLink project as a Java class (`oracle.toplink.sessions.Project`) that contains all descriptor configuration in Java. This lets you use TopLink Workbench to quickly create and configure descriptors, and then, manually code features that TopLink Workbench does not support. This gives you the best of both TopLink Workbench and Java access to your descriptors. After configuring your Java project class, compile it and include it in your application's JAR file.

For more information, see "Exporting Project Java Source".