Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Enhance : clarification needed

Jean-Baptiste BRIAUD -- Novlog

2010-08-12

Replies: Find Java Web Hosting

Author LoginPost Reply
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 !
©2008 gg3721.com - Jax Systems, LLC, U.S.A.