This chapter is composed of :
The purpose of this chapter is to show how to generate Object Relational Bridge (OJB) resources.
This wizard needs to use a target Java Project.
This wizard will generate :
To start the Object Relational Bridge Resources wizard, select :
File->New->Other->Database->Object Relational Bridge Resources
or
Select an object in the Package Explorer View or the Navigator View then right-click and select :
New->Other->Database->Object Relational Bridge Resources
The selection is contextual.This means that if you select an existing Database Object:
The wizard will be opened with a selected Database Connection if applicable.
Otherwise:
The wizard will be opened without any selected Database Connection.
Type in the Java Source Folder text field the targeted Java Source Folder.
The Java Source Folder should exist.
Otherwise use the Browse button :
Select the appropriate Java Source Folder.
Type in the Package text field the targeted Java Package.
Otherwise use the Browse button :
Select the appropriate targeted Java Package.
Use the Browse button :
The Database Schema selector displays the available Database Schema in your current Project.
Select the appropriate Database Schema.
The code generation process will be performed in the targeted Java Source Folder and its designated target package
Detailed information will be displayed in the DatabaseConsole window.
This wizard is Template based.
Below your Plugin Templates or MyTemplates you should see the following directory.
Torque/ojb
These templates are Velocity based and use the Torque Model API.
Here are several links provided for further Apache Object Relational Bridge related information.