Chapter 6 Generating JDO Persistent Objects


Generating Java Code and the JDO Persistence Descriptor

Steps To generate Java code and the JDO persistence descriptor:

  1. Select Language→Generate Java Code
  2. Select the main directory where you want to generate the files.
  3. In the Targets page, verify that JDO is selected.
  4. In the Selection page, select the packages, classes and interfaces you want to generate.
  5. In the Options page, set the "ANT: Generate Ant build.xml file" option to true
  6. In the Tasks page, you can select the "JDO: Compile Java sources, Run JDO Enhancer" commands if you want to compile Java classes and run the JDO enhancer from PowerDesigner
  7. 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) 2005. Sybase Inc. All rights reserved.