Chapter 6 Generating JDO Persistent Objects


Using JBuilder

To compile Java classes and run JDO enhancer with JBuilder, you need to add the JBuilder profile before you generate the Java code and JDO persistence descriptor.

Steps To add the JBuilder profile:

  1. Select Model→Extended Model Definitions.
  2. In the List of Extended Model Definitions, click on the Import tool.
  3. Click on the IDE category.
  4. Select JBuilder 8 or JBuilder 7.

Once you have added the JBuilder profile, you can generate the Java code. PowerDesigner will also generate a JBuilder project file and an Ant build script.

Steps To compile and run the JDO enhancer:

  1. Start JBuilder.
  2. Open the generate JBuilder project file in the generation directory.
  3. Right-click the project node in the browser.
  4. Select Make. JBuilder will compile the Java classes.
  5. Expand the Ant build.xml file.
  6. Right-click on the Enhance task.
  7. Select Make. JBuilder will run the JDO enhancer using Ant.

For more information on JBuilder support, see the JBuilder support technical document from the Help→Product Documentation menu.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.