Skip Headers

# Exporting Project Java Source

Previous

Next

For relational projects only, you can convert the project to Java source code. Generally, the generated code executes faster and deploys easier than XML files. See "Generating Java Code for Descriptors" to export the model source for a specific descriptor in a project. To convert your relational project to Java source, use this procedure:

1. Right-click the project in the Navigator and choose Export > Project Java Source from the context menu.

   You can also choose Workbench > Export > Export Java Source or Selected > Export > Project Java Source from the menu.

   If you have not defined deployment and source code generation defaults (see "Configuring a Project") TopLink Workbench prompts for a project class name and directory.

Note: If your TopLink Workbench project uses the UTF-8 character set, you must use a compatible JDK when compiling the exported Java source. If your project contains errors, the `project.xml` file may not be valid. See TopLink Workbench Error Reference for information on each reported error.

To generate Java source that is compatible with projects prior to 10g (10.1.3.1.0), see "Configuring Deprecated Direct Mappings" .