Using J2EE Persistence with OpenJPA
Hi,
I started a new project and wanted to try OpenJPA peristence. I selected the JavaEE Persistence technologies option in the new project wizard, and selected OpenJPA. I also added the OpenJPA 1.2 libraries.
Everything is fine until I try to test persistence, at which point I get an OpenJPA exception telling me the object I want to persist has not been "enhanced". Open JPA requires that classes be enhanced (persistence enabled) through one of several methods, including bytecode manipulation and this doesn't seem to happen during the build process. I'm not seeing any automated way to do this during the normal build test cycle using test runner. Can someone please explain this to me?
Thanks.
请先登录再写评论。