Right, that's what my reference was for in my previous reply:  [1]
http://openjpa.apache.org/entity-enhancement.html

This should have all of the information you need, or pointers to
information you need, to accomplish your goal.

Kevin

On Wed, Feb 13, 2013 at 1:02 PM, Riccardo <
riccardo.nim...@s2000.tu-chemnitz.de> wrote:

> Thanks for you reply Kevin. Indeed, I used the property you mentioned. I am
> new to OpenJPA and I use JBoss AS 7.1.1. Can you point me to some
> documentation, how I can enable the enhancing of entities on deployment or
> at runtime?
>
> So far I installed OpenJPA 2.1.1 as a module and my module.xml looks like
> this:
>
> <module xmlns="urn:jboss:module:1.1" name="org.apache.openjpa">
>     <resources>
>         <resource-root path="openjpa-all-2.2.1.jar"/>
>         <resource-root path="serp-1.13.1.jar"/>
>     </resources>
>
>     <dependencies>
>         <module name="javax.persistence.api"/>
>         <module name="javax.transaction.api"/>
>         <module name="javax.validation.api"/>
>
>         <module name="org.apache.log4j"/>
>     </dependencies>
> </module>
>
> However, as soon as I try to access one of my entities I get the following
> error:
>
> - org.apache.openjpa.persistence.ArgumentException: This configuration
> disallows runtime optimization, but the following listed types were not
> enhanced at build time or at class load time with a javaagent
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Mapping-of-Derived-Identities-does-not-work-tp7582806p7582820.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>

Reply via email to