Chapter 6 Generating JDO Persistent Objects


Using Eclipse

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

Steps To add the Eclipse 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 Eclipse.

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

Steps To compile and run JDO enhancer:

  1. Start Eclipse.
  2. Import the generated project if it is a new project or refresh the project if it is an existing project. Eclipse will automatically compile the project.
  3. Right-click the Ant build.xml file.
  4. Select Run Ant
  5. In the list of tasks, select the enhance task
  6. Click Finish. Eclipse will run the JDO enhancer.

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

 


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