
Chapter 10 Generating JDO Persistent Objects
Generating Java Code and the JDO Persistence Descriptor
To generate Java code and the JDO persistence descriptor:
- Select Language→Generate Java Code
- Specify the directory where you want to generate the files.
- Click the Targets tab and verify that JDO is selected.
- [optional] Click the Selection tab and select the packages, classes and interfaces you want to generate.
- Click the Options tab and set the "ANT: Generate Ant build.xml file" option to true
- [optional] If you want to compile Java classes and run the JDO enhancer from PowerDesigner, click the Tasks tab and select the "JDO: Compile Java sources, Run JDO Enhancer" commands.
- Click OK to generate the Java classes and the JDO persistence descriptor.
PowerDesigner generates all the Java source code and the JDO persistence descriptor. You can use an editor to view the generated files
Copyright (C) 2007. Sybase Inc. All rights reserved.
|
|