You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

OpenJPA Eclipse Tooling

How to use the OpenJPA Eclipse Tooling Builder for Bytecode Enhancement

Once you have installed the OpenJPA Eclipse tooling, here is how to add the Bytecode Enhancement builder to a Java project:

  1. right-click on Project, click "Add/Remove Bytecode Enhancer"
  2. in the Enable OpenJPA dialog which will be shown: (TBD: Attach screenshot here, once ugly OPENJPA-1521 is resolved?)
    1. choose if OpenJPA libraries should be added to project, this will copy the OpenJPA JARs from the Eclipse plug-in into a lib directory of the Java project, and add them as Referenced Libraries. (In a normal existing project you'll already have them via Maven or otherwise, but for test projects this is convenient.)
    2. choose enhancement options, if you need any. These are the same options as the CLI PCEnhancer supports
  3. menu Project > Properties (or right-click on Project > Properties) should now show the "OpenJPA PC-Enhancer Project Builder" added after the usual "Java Builder"
  4. when Eclipse builds (compiles) the project, classes will now be byte-code enhanced

Options

  • ... **/*Entity.java ...

Troubleshooting

  • ... debug ...
  • No labels