Enhancement with EclipsePage edited by Donald Woodsadded pointer to new eclipse plugin under openjpa/devtoolsEnhancing 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 EclipseThe OpenJPA Eclipse Tooling is a sub-project of the OpenJPA project. It develops IDE tooling for OpenJPA as an Eclipse feature with plug-ins. Currently it provides an Eclipse Builder for OpenJPA Enhancement.
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
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
- [CONF] OpenJPA > Enhancement with Eclipse confluence
- [CONF] OpenJPA > Enhancement with Eclipse confluence
