Oracle® Application Server TopLink Mapping Workbench User's Guide
10g Release 2 (10.1.2) Part No. B15900-01 |
|
Previous |
Next |
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:
Note: When exporting Java source and deployment XML, the OracleAS TopLink Mapping Workbench writes the password using JCE encryption (when using JDK 1.4). Refer to the Oracle Application Server TopLink Getting Started Guide for information on using password encryption with pre-JDK 1.3.Use the OracleAS TopLink Sessions Editor to specify custom password encryption (see "Setting Login Properties" on page 8-10). |
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.
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. |
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.
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.
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.
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. |