openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcrisera <>
Subject Re: Build time Enhancement & Maven dependencies, persistence.xml
Date Tue, 06 Nov 2012 19:57:06 GMT
Thanks for your reply.   I suppose I should explain why my manager had me
look into this.   We wanted to know if we could have a dao project with
generic JPA entity classes.   Then if we were going to build a web project
that was going to specifically use OpenJPA as the provider, could pull in
the dao project as a dependency in the Maven build and enhance the entity
objects at that time.

I had the impression that the persistence.xml was used at build time from
this statement in the 2.2 pdf documentation.  (Under 5.2.1. Enhancing at
Build Time)
"If you do not supply any arguments to the enhancer, it will run on the
classes in your persistent class list (see Section 5.1, “Persistent Class
List ” [260]). You must, however, supply the classpath you wish the enhancer
to run with. This classpath must include, at minimum, the openjpa jar(s),
persistence.xml and the target classes. "  
I thought that list included any jars defined in persistence.xml.

Thanks again.  Tony

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message