openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste BRIAUD -- Novlog <j-b.bri...@novlog.com>
Subject Enhance : clarification needed
Date Thu, 12 Aug 2010 11:07:11 GMT
Hi,

I'm using Enhance for a while now, but still have questions :

* Why do enhance need persistence.xml, no DB connection should be done during enhance, right
?

* Why enhance allow/need to specify .java files, only .class are enhance, and .class must
be there before enhancement, right ?

* Why enhance allow/need to specify the files to enhance, aren't they already in the persistence.xml
?

* The complete total absolute list of possible option for the enhancer, especially the ant
callable version.
I just notice from http://www.ibm.com/developerworks/websphere/techjournal/0612_barcia/0612_barcia.html
That the following option was possible :
<openjpac>
    <config propertiesFile="./META-INF/persistence.xml"/>
    <fileset dir=".">
    <include name="**/com/ibm/persistence/ejb3/order/entity/*.java" />
    </fileset>
</openjpac>

So specifying the persistence.xml location is possible and it might be outside META-INF ?
So, specifying all the java (?) file to enhance is possible.

Any other option (like the persistence unit to use) ?

Thanks !
Mime
View raw message