Skip Headers
Oracle® Application Server TopLink Mapping Workbench User's Guide
10g Release 2 (10.1.2)
Part No. B15900-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Exporting Project Information

To use your project with the Oracle Application Server TopLink Foundation Library, you must either generate deployment XML or export the project to Java source code. The OracleAS TopLink Mapping Workbench can generate and export the following project information:

Exporting Project to Java Source

Use this procedure to convert the project to Java code. Generally, this generated code executes faster and deploys easier than XML files.

To Export the Project to Java Source Code:

Right-click the project in the Navigator pane and choose Export > Project to Java Source from the pop-up menu.

Expor to Java Source button.
Description of the illustration expjava.gif

You can also click the Export to Java Source button, or choose File > Export > Export to Java Source or Selected > Export > Export to Java Source from the menu.

If you have not defined deployment and source code generation defaults (see "Working with Project Options") the OracleAS TopLink Mapping Workbench prompts for a project class name and source directory.


Note:

If your OracleAS TopLink Mapping Workbench project uses UTF-8 character set, you must use a compatible JDK when compiling the exported Java source.

Exporting Deployment XML

Use this procedure to generate XML files from your project that can be read by the OracleAS TopLink Foundation Library. Using this option reduces development time by eliminating the need to regenerate and recompile Java code each time the project changes.

To Export Deployment XML:

Right-click the project in the Navigator pane and choose Export > Deployment XML from the pop-up menu.

Export to Deployment XML button.
Description of the illustration expxml.gif

You can also click the Export to Deployment XML button or choose File > Export > Generate Deployment XML or Selected > Export > Generate Deployment XML from the menu.

If you have not defined deployment and source code generation defaults (see "Working with Project Options") the OracleAS TopLink Mapping Workbench prompts for a filename and directory.

Exporting Table Creator Files

Use this procedure to create Java source code to generate database tables.

To Export Table Creator Files:

Right-click the project in the Navigator pane and choose Export > Export Table Creator Java Source from the pop-up menu.

You can also choose File > Export > Table Creator Java Source or Selected > Export > Table Creator Java Source from the menu.

If you have not defined deployment and source code generation defaults (see "Working with Project Options") the OracleAS TopLink Mapping Workbench prompts for a class name and root directory.

Exporting Java Model Source

Use this procedure to generate the project model's Java source.

To Export Java Model Source:

Right-click the project, package, or specific descriptor in the Navigator pane and choose Export > Export Java Model Source from the pop-up menu. The OracleAS TopLink Mapping Workbench creates a .java file for each selected descriptor.

You can also choose File > Export > Export Java Model Source or Selected > Export > Java Model Source from the menu.

If you have not defined deployment and source code generation defaults (see "Working with Project Options") the OracleAS TopLink Mapping Workbench prompts for a root directory.


Note:

If your OracleAS TopLink Mapping Workbench project uses UTF-8 character set, you must use a compatible JDK when compiling the exported Java source.