|
|
Enhancing Entities with EclipseIf you are using Eclipse to write and deploy your application, then you have two choices for build time enhancement of your entities. But, if you're using orm.xml to map the Entities, then you can only use the Custom ANT Builder method below, as the OpenJPA Plugin for Eclipse currently does not handle that scenario. OpenJPA Plugin for EclipsePinaki Poddar has created an initial Eclipse Plug-in for OpenJPA 1.2, which can be used to enhance your entities during the normal Eclipse builder steps. Details about how to install and use the plugin can be found at http://people.apache.org/~ppoddar/eclipse/index.html Please note, that the above plugin has not been officially accepted into a OpenJPA branch or released by the OpenJPA project, but please give it a try and send any feedback to users@openjpa.apache.org Custom ANT BuilderFor steps documented below, I have the following directory structure. Note, these steps must be followed for each project that has Entities that need to be enhanced.
/builder_project
enhance.xml <- the OpenJPA builder....
/bin <- Compile directory
/src <- Source directory
/jpa_lib <- OpenJPA binary and all jars from the lib dir of the binary download
commons-collections-3.2.jar
commons-lang-2.1.jar
commons-pool-1.3.jar
derby-10.2.2.0.jar
geronimo-jpa_2.0_spec-1.0-EA-SNAPSHOT.jar
geronimo-jta_1.1_spec-1.1.1.jar
openjpa-2.0.0-SNAPSHOT.jar
serp-1.13.1.jar
/lib <- other libs
|




